code
stringlengths
1
1.96M
language
stringclasses
1 value
#!/bin/bash # notes: XXX qemu burnd one of my cpu`s, lucky me, i bet it was the accelerator :) # so i use vmware. wd="`pwd`" . $wd/env echo " start krdc 0:3 " qemu -cdrom /b1/nemonico/nemonico.iso -hda $wd/tmp/nemonico_test.img -boot d -m 256 -vnc 0:3 #qemu -cdrom $wd/nemonico.iso -hda $wd/tmp/nemonico_test.img -boo...
Shell
#!/bin/bash PATH=/sbin:/usr/sbin:/bin:/usr/bin:. export PATH . /nemonico/BOOT . /etc/scripts/env . /etc/scripts/utils.fn set +eE if [ "`echo $BOOT_NET_INTERFACE|grep -i dhcp`" ]; then isdhcp=Y else ip="`echo $BOOT_NET_INTERFACE | cut -f1 -d";"`" netmask="`echo $BOOT_NET_INTERFACE | cut -f2 -d";"`" gateway="`ec...
Shell
#!/bin/bash PATH=/sbin:/usr/sbin:/bin:/usr/bin:. export PATH . /nemonico/BOOT . /etc/scripts/env . /etc/scripts/utils.fn set +eE if [ "`echo $BOOT_NET_INTERFACE|grep -i dhcp`" ]; then isdhcp=Y else ip="`echo $BOOT_NET_INTERFACE | cut -f1 -d";"`" netmask="`echo $BOOT_NET_INTERFACE | cut -f2 -d";"`" gateway="`ec...
Shell
# $Id$ # PATH=/sbin:/usr/sbin:/bin:/usr/bin:. export PATH TERM=linux export TERM . /etc/scripts/env . /etc/scripts/utils.fn if [ -s "$vp_pass" ]; then echo " Password for the vault already enterd." echo " Will disconnect unexpectedly." else /getpassword_remote.sh exit fi # vim: ts=2 syn=sh # profile: end
Shell
#!/bin/bash # $Id$ . /etc/scripts/env . /etc/scripts/utils.fn . /nemonico/BOOT echo $$ > /tmp/getpassword_console.sh.pid count=0 pass1="0" while [ "$pass1" != "$pass2" ]; do if [ "$count" = "3" ]; then echo "Reboot ..." reboot fi if [ "$count" != "0" ]; then echo "Passphrase do ...
Shell
#!/bin/bash # $Id$ . /etc/scripts/env . /etc/scripts/utils.fn . /nemonico/BOOT echo $$ > /tmp/getpassword_console.sh.pid count=0 pass1="0" while [ "$pass1" != "$pass2" ]; do if [ "$count" = "3" ]; then echo "Reboot ..." reboot fi if [ "$count" != "0" ]; then echo "Passphrase do ...
Shell
#!/bin/bash # vim: ts=2 syn=sh # 1. Load kernel mods # 2. Load bootnet/sshd # 3. Get passwd # 4. Open devices(md,enclayer) , not mount them # 5. make_key; mkswap # 6. Mount root, cp /etc/nemonico to initram and do the descriptors PATH=/sbin:/usr/sbin:/usr/local/sbin:/bin:/usr/bin ; export PATH LD_LIBRARY_PATH=/lib...
Shell
#!/bin/bash # XXX ifconfig -a > /dev/urandom date > /dev/urandom ls -R /nemonico > /dev/urandom date > /dev/urandom date "+%s" > /dev/urandom cat /proc/diskstats > /dev/urandom cat /proc/meminfo > /dev/urandom cat /proc/slabinfo > /dev/urandom cat /proc/interrupts > /dev/urandom
Shell
#!/bin/bash # $Id$ . /etc/scripts/env . /etc/scripts/utils.fn . /nemonico/BOOT echo $$ > /tmp/getpassword_remote.sh.pid count=0 pass1="0" while [ "$pass1" != "$pass2" ]; do if [ "$count" = "3" ]; then echo "Reboot ..." reboot fi if [ "$count" != "0" ]; then echo "Passphrase do...
Shell
#!/bin/bash # vim: ts=2 syn=sh # 1. Load kernel mods # 2. Load bootnet/sshd # 3. Get passwd # 4. Open devices(md,enclayer) , not mount them # 5. make_key; mkswap # 6. Mount root, cp /etc/nemonico to initram and do the descriptors PATH=/sbin:/usr/sbin:/usr/local/sbin:/bin:/usr/bin ; export PATH LD_LIBRARY_PATH=/lib...
Shell
#!/bin/bash # $Id$ # ## Taken from OpenWRT Whiterussian RC5 RESOLV_CONF=/etc/resolv.conf case "$1" in deconfig) ifconfig $interface 0.0.0.0 ;; renew|bound) ifconfig $interface $ip \ netmask ${subnet:-255.255.255.0} \ broadcast $...
Shell
#!/bin/bash # $Id$ # ## Taken from OpenWRT Whiterussian RC5 RESOLV_CONF=/etc/resolv.conf case "$1" in deconfig) ifconfig $interface 0.0.0.0 ;; renew|bound) ifconfig $interface $ip \ netmask ${subnet:-255.255.255.0} \ broadcast $...
Shell
#!/bin/bash # XXX ifconfig -a > /dev/urandom date > /dev/urandom ls -R /nemonico > /dev/urandom date > /dev/urandom date "+%s" > /dev/urandom cat /proc/diskstats > /dev/urandom cat /proc/meminfo > /dev/urandom cat /proc/slabinfo > /dev/urandom cat /proc/interrupts > /dev/urandom
Shell
#!/bin/bash # $Id$ . /etc/scripts/env . /etc/scripts/utils.fn . /nemonico/BOOT echo $$ > /tmp/getpassword_remote.sh.pid count=0 pass1="0" while [ "$pass1" != "$pass2" ]; do if [ "$count" = "3" ]; then echo "Reboot ..." reboot fi if [ "$count" != "0" ]; then echo "Passphrase do...
Shell
#!/bin/bash # $Id$ kmoddir="/medium/kernel-modules/lib/modules/`uname -r`/" if [ -d $kmoddir ]; then mkdir -p /lib/modules ln -bs "$kmoddir" /lib/modules/"`uname -r`" || exit 1 else echo " ERROR: Did not found a kernel modules directory on media `cat /var/tmp/cdrom_device`, exiting ..." exit 1 fi
Shell
#!/bin/bash # $Id$ # . /etc/scripts/env . /etc/scripts/common.fn . /etc/scripts/common.disks.fn . /etc/scripts/vault.fn . /etc/scripts/disk.fn . /etc/scripts/lvm.fn . /etc/scripts/mountpoint.fn . /etc/scripts/md.fn . /etc/scripts/enclayer.fn . /etc/scripts/packages.fn . /etc/scripts/network.fn . /etc/scripts/time.fn ....
Shell
#!/bin/bash # $Id$ kmoddir="/medium/kernel-modules/lib/modules/`uname -r`/" if [ -d $kmoddir ]; then mkdir -p /lib/modules ln -bs "$kmoddir" /lib/modules/"`uname -r`" || exit 1 else echo " ERROR: Did not found a kernel modules directory on media `cat /var/tmp/cdrom_device`, exiting ..." exit 1 fi
Shell
#!/bin/bash # $Id$ # . /etc/scripts/env . /etc/scripts/common.fn . /etc/scripts/common.disks.fn . /etc/scripts/vault.fn . /etc/scripts/disk.fn . /etc/scripts/lvm.fn . /etc/scripts/mountpoint.fn . /etc/scripts/md.fn . /etc/scripts/enclayer.fn . /etc/scripts/packages.fn . /etc/scripts/network.fn . /etc/scripts/time.fn ....
Shell
# $Id$ # PATH="/sbin:/usr/sbin:/usr/bin:/bin:/usr/local/bin:/usr/local/sbin:." TERM=linux PS1="["`tty`"] [\h]:# " PS2="> " HOME=/root export PATH DISPLAY TERM PS1 PS2 HOME umask 022 . /etc/scripts/env . /etc/scripts/common.fn . /etc/scripts/common.disks.fn . /etc/scripts/vault.fn . /etc/scripts/disk.fn . /etc/script...
Shell
#!/bin/sh # rc.ieee1394: search for IEEE1394 (firewire) devices needed for installation. # # Taken from slackware # This is a function to unload the IEEE1394 (firewire) modules: ieee1394_stop() { modprobe -r sbp2 ohci1394 modprobe -r ieee1394 } # This is a function to attempt to enable a IEEE1394 storage device....
Shell
#!/bin/sh # rc.usb: search for USB devices needed for installation. # # Taken from slackware # This is a function to unload the USB modules: usb_stop() { modprobe -r usb-storage keybdev mousedev usbmouse hid usbkbd \ input uhci usb-uhci usb-ohci uhci-hcd ohci-hcd ehci-hcd 2> /dev/null umount usbfs 2> /dev/null...
Shell
#!/bin/sh # rc.ieee1394: search for IEEE1394 (firewire) devices needed for installation. # # Taken from slackware # This is a function to unload the IEEE1394 (firewire) modules: ieee1394_stop() { modprobe -r sbp2 ohci1394 modprobe -r ieee1394 } # This is a function to attempt to enable a IEEE1394 storage device....
Shell
#!/bin/sh # rc.usb: search for USB devices needed for installation. # # Taken from slackware # This is a function to unload the USB modules: usb_stop() { modprobe -r usb-storage keybdev mousedev usbmouse hid usbkbd \ input uhci usb-uhci usb-ohci uhci-hcd ohci-hcd ehci-hcd 2> /dev/null umount usbfs 2> /dev/null...
Shell
#!/bin/bash --login PATH=/bin:/usr/bin:/sbin:/usr/sbin:. export PATH HOME=/root export HOME /bin/echo "doing /init ...." /bin/hostname nemonico setlogcons 12 # Mount /bin/mount -v proc /proc -n -t proc /bin/mount -v sysfs /sys -n -t sysfs #/bin/mount -t tmpfs -o size=64M mdev /dev mkdir -p /dev/pts mount -t devpt...
Shell
#!/bin/bash --login PATH=/bin:/usr/bin:/sbin:/usr/sbin:. export PATH HOME=/root export HOME /bin/echo "doing /init ...." /bin/hostname nemonico setlogcons 12 # Mount /bin/mount -v proc /proc -n -t proc /bin/mount -v sysfs /sys -n -t sysfs #/bin/mount -t tmpfs -o size=64M mdev /dev mkdir -p /dev/pts mount -t devpt...
Shell
#!/bin/sh # $Id$ # ## Taken from OpenWRT Whiterussian RC5 RESOLV_CONF=/etc/resolv.conf . /etc/scripts/env case "$1" in deconfig) ifconfig $interface 0.0.0.0 ;; renew|bound) ifconfig $interface $ip \ netmask ${subnet:-255.255.255.0} \ ...
Shell
#!/bin/sh # $Id$ # ## Taken from OpenWRT Whiterussian RC5 RESOLV_CONF=/etc/resolv.conf . /etc/scripts/env case "$1" in deconfig) ifconfig $interface 0.0.0.0 ;; renew|bound) ifconfig $interface $ip \ netmask ${subnet:-255.255.255.0} \ ...
Shell
( cd etc/rc.d; cat rc.local.rng-tools.append >> rc.local ) ( cd etc/rc.d; rm -f rc.local.rng-tools.append )
Shell
#!/bin/sh export PATH="/usr/pkg/bin:/usr/X11/bin:${PATH}" if [ `id -u` -eq "0" ]; then export PATH="/usr/pkg/sbin:${PATH}" fi export MANPATH="/usr/pkg/man:${MANPATH}" # gcc34 export PATH=/usr/pkg/gcc34/bin:$PATH
Shell
#!/bin/sh export PATH="/usr/pkg/bin:/usr/X11/bin:${PATH}" if [ `id -u` -eq "0" ]; then export PATH="/usr/pkg/sbin:${PATH}" fi export MANPATH="/usr/pkg/man:${MANPATH}" # gcc34 export PATH=/usr/pkg/gcc34/bin:$PATH
Shell
#!/bin/sh NEMONICO_ROOT=${NEMONICO_ROOT:-/usr/nemonico} export NEMONICO_ROOT if [ "`id -u`" = "0" ]; then PATH=$NEMONICO_ROOT/bin:$PATH ; export PATH fi
Shell
#!/bin/sh NEMONICO_ROOT=${NEMONICO_ROOT:-/usr/nemonico} export NEMONICO_ROOT if [ "`id -u`" = "0" ]; then PATH=$NEMONICO_ROOT/bin:$PATH ; export PATH fi
Shell
#!/bin/bash # $Id$ tmpmnt="`mktemp -d /tmp/tmp.XXXXXX`" for device in /dev/hd[a-z]; do mount -o ro -t iso9660 $device $tmpmnt 2> /dev/null if [ $? = 0 ]; then [ ! -L /dev/cdrom ] && ln -s $device /dev/cdrom echo $device > /var/tmp/cdrom_device umount $tmpmnt 2>/dev/null break else umount -f $tmpmnt 2>/de...
Shell
#!/bin/bash # $Id$ # desc: output /var/tmp/sd[a-z][0-9] as text file, in it desc and size # of the device, and to stdout export syspath=/sys/block # ex. usblist="sda1 sdb" export usblist="" export tmpmnt="`mktemp -d /tmp/tmp.XXXXXX`" find_dev_m1 () { for l in a b c d e f g h i j k l m n o p q r s t u v w x y z...
Shell
#!/bin/bash # $Id$ # desc: output /var/tmp/sd[a-z][0-9] as text file, in it desc and size # of the device, and to stdout export syspath=/sys/block # ex. usblist="sda1 sdb" export usblist="" export tmpmnt="`mktemp -d /tmp/tmp.XXXXXX`" find_dev_m1 () { for l in a b c d e f g h i j k l m n o p q r s t u v w x y z...
Shell
#!/bin/bash # $Id$ tmpmnt="`mktemp -d /tmp/tmp.XXXXXX`" for device in /dev/hd[a-z]; do mount -o ro -t iso9660 $device $tmpmnt 2> /dev/null if [ $? = 0 ]; then [ ! -L /dev/cdrom ] && ln -s $device /dev/cdrom echo $device > /var/tmp/cdrom_device umount $tmpmnt 2>/dev/null break else umount -f $tmpmnt 2>/de...
Shell
#!/bin/bash set -eETa set -o pipefail . ./files/env . ./files/buildscripts.fn trap '_chk_err' ERR export -f _chk_err make_cd () { ./bin/mk-dir-struct.sh ./bin/fetch-src non_slackware_build # if build host is not slackware ./bin/build-auxbuildroot ./bin/build-nemopkg ./bin/build-installcd ./bin/build-initr...
Shell
#!/bin/bash set -eETa set -o pipefail . ./files/env . ./files/buildscripts.fn trap '_chk_err' ERR export -f _chk_err make_cd () { ./bin/mk-dir-struct.sh ./bin/fetch-src non_slackware_build # if build host is not slackware ./bin/build-auxbuildroot ./bin/build-nemopkg ./bin/build-installcd ./bin/build-initr...
Shell
#!/bin/bash wd="`pwd`" . $wd/env if [ "$UID" != "0" ]; then echo "ERROR: must run as root" exit 1 fi echo "" echo " For Slackware $slackware_version" echo "" echo " This script will copy all packages that appear listed in: " echo " ./files/installcd-initrd/nemonico/files/packages/pkglist/default " echo "" echo...
Shell
#!/bin/bash # $Id$ # edit descriptors # XXX validate descriptors # optionaly add authorized_keys # targz it __get_desc_val () { echo "$(< $1 )" | grep "^${2}=" | cut -f2 -d"=" | sed -e 's/"//g' 2>/dev/null } __strip_bdot () { n="`echo $1|cut -f2 -d"."`" echo $n } __strip_adot () { n="`echo $1|cut -f1 -d"."`" ...
Shell
#!/bin/sh -e wd="`pwd`" time="`date "+%s"`" tmp_pkglist=$wd/tmp/pkglist-$time . $wd/env if [ ! "$cksum_file" ]; then echo "" echo -n " Enter path to the CHECKSUMS.md5 file: " read cksum_file fi if [ -f "$cksum_file" ]; then mkdir -p $tmp_pkglist cp $cksum_file $tmp_pkglist/CHECKSUMS.md5 # strip with result: ...
Shell
#!/bin/sh -xe # This is for devel use. # After changing stuff in files/installcd-initrd and files/host-initram # and then creating the initrams for testing. . files/env ./bin/build-auxbuildroot cpfiles ./bin/build-auxbuildroot setperms chroot $auxbuildroot_dir BIN/build-installcd tree chroot $auxbuildroot_dir BIN...
Shell
#!/bin/bash wd="`pwd`" . $wd/env set -ex ./bin/build-auxbuildroot cpfiles ./bin/build-auxbuildroot setperms chroot $auxbuildroot_dir BIN/build-installcd tree chroot $auxbuildroot_dir BIN/build-installcd setperms ./bin/build-installcd delstuff cd $wd/$auxbuildroot_dir/$installcdinitrd_build_dir tar --exclude=".svn" ...
Shell
#!/bin/sh -e wd="`pwd`" time="`date "+%s"`" tmp_pkglist=$wd/tmp/pkglist-$time . $wd/env if [ ! "$cksum_file" ]; then echo "" echo -n " Enter path to the CHECKSUMS.md5 file: " read cksum_file fi if [ -f "$cksum_file" ]; then mkdir -p $tmp_pkglist cp $cksum_file $tmp_pkglist/CHECKSUMS.md5 # strip with result: ...
Shell
#!/bin/bash wd="`pwd`" . $wd/env if [ ! -f $wd/tmp/hda.img ]; then qemu-img create -f qcow2 $wd/tmp/hda.img 2G fi if [ ! -f $wd/tmp/hdb.img ]; then qemu-img create -f qcow2 $wd/tmp/hdb.img 2G fi if [ ! -f $wd/tmp/sda.img ]; then qemu-img create -f qcow2 $wd/tmp/sda.img 2G fi if [ ! -f $wd/tmp/sdb.img ]; then qem...
Shell
#!/bin/bash wd="`pwd`" . $wd/env if [ "$UID" != "0" ]; then echo "ERROR: must run as root" exit 1 fi echo "" echo " For Slackware $slackware_version" echo "" echo " This script will copy all packages that appear listed in: " echo " ./files/installcd-initrd/nemonico/files/packages/pkglist/default " echo "" echo...
Shell
#!/bin/bash # $Id$ # edit descriptors # XXX validate descriptors # optionaly add authorized_keys # targz it __get_desc_val () { echo "$(< $1 )" | grep "^${2}=" | cut -f2 -d"=" | sed -e 's/"//g' 2>/dev/null } __strip_bdot () { n="`echo $1|cut -f2 -d"."`" echo $n } __strip_adot () { n="`echo $1|cut -f1 -d"."`" ...
Shell
#!/bin/bash wd="`pwd`" . $wd/env if [ ! -f $wd/tmp/hda.img ]; then qemu-img create -f qcow2 $wd/tmp/hda.img 2G fi if [ ! -f $wd/tmp/hdb.img ]; then qemu-img create -f qcow2 $wd/tmp/hdb.img 2G fi if [ ! -f $wd/tmp/sda.img ]; then qemu-img create -f qcow2 $wd/tmp/sda.img 2G fi if [ ! -f $wd/tmp/sdb.img ]; then qem...
Shell
#!/bin/bash wd="`pwd`" . $wd/env set -ex ./bin/build-auxbuildroot cpfiles ./bin/build-auxbuildroot setperms chroot $auxbuildroot_dir BIN/build-installcd tree chroot $auxbuildroot_dir BIN/build-installcd setperms ./bin/build-installcd delstuff cd $wd/$auxbuildroot_dir/$installcdinitrd_build_dir tar --exclude=".svn" ...
Shell
#!/bin/sh -xe # This is for devel use. # After changing stuff in files/installcd-initrd and files/host-initram # and then creating the initrams for testing. . files/env ./bin/build-auxbuildroot cpfiles ./bin/build-auxbuildroot setperms chroot $auxbuildroot_dir BIN/build-installcd tree chroot $auxbuildroot_dir BIN...
Shell
#!/bin/sh # rc.modules 12.1 Wed Mar 5 23:51:09 CST 2008 pp (rb), pjv # # This file loads extra drivers into the Linux kernel. # # The modules will be looked for under /lib/modules/<kernel version number> # On systems using KMOD and hotplug or udev this file should remain mostly # commented out. Nearly all hardware ...
Shell
#!/bin/bash PATH=/sbin:/usr/sbin:/bin:/usr/bin:. export PATH . /nemonico/BOOT . /etc/scripts/env . /etc/scripts/utils.fn set +eE if [ "`echo $BOOT_NET_INTERFACE|grep -i dhcp`" ]; then isdhcp=Y else ip="`echo $BOOT_NET_INTERFACE | cut -f1 -d";"`" netmask="`echo $BOOT_NET_INTERFACE | cut -f2 -d";"`" gateway="`ec...
Shell
#!/bin/bash PATH=/sbin:/usr/sbin:/bin:/usr/bin:. export PATH . /nemonico/BOOT . /etc/scripts/env . /etc/scripts/utils.fn set +eE if [ "`echo $BOOT_NET_INTERFACE|grep -i dhcp`" ]; then isdhcp=Y else ip="`echo $BOOT_NET_INTERFACE | cut -f1 -d";"`" netmask="`echo $BOOT_NET_INTERFACE | cut -f2 -d";"`" gateway="`ec...
Shell
# $Id$ # PATH=/sbin:/usr/sbin:/bin:/usr/bin:. export PATH TERM=linux export TERM . /etc/scripts/env . /etc/scripts/utils.fn . /etc/scripts/boot.fn if [ -s "$vp_pass" ]; then echo " Password for the vault already enterd." echo " Will disconnect unexpectedly." else /getpassword_remote.sh exit fi # vim: ts=2 syn=...
Shell
#!/bin/bash # $Id$ . /etc/scripts/env . /etc/scripts/utils.fn . /nemonico/BOOT echo $$ > /tmp/getpassword_console.sh.pid count=0 pass1="0" while [ "$pass1" != "$pass2" ]; do if [ "$count" = "3" ]; then echo "Reboot ..." reboot fi if [ "$count" != "0" ]; then echo "Passphrase do ...
Shell
#!/bin/bash # $Id$ . /etc/scripts/env . /etc/scripts/utils.fn . /nemonico/BOOT echo $$ > /tmp/getpassword_console.sh.pid count=0 pass1="0" while [ "$pass1" != "$pass2" ]; do if [ "$count" = "3" ]; then echo "Reboot ..." reboot fi if [ "$count" != "0" ]; then echo "Passphrase do ...
Shell
#!/bin/bash # vim: ts=2 syn=sh # 1. Load kernel mods # 2. Load bootnet/sshd # 3. Get passwd # 4. Open devices(md,enclayer) , not mount them # 5. make_key; mkswap # 6. Mount root, cp /etc/nemonico to initram and do the descriptors PATH=/sbin:/usr/sbin:/usr/local/sbin:/bin:/usr/bin ; export PATH LD_LIBRARY_PATH=/lib...
Shell
#!/bin/bash # XXX ifconfig -a > /dev/urandom date > /dev/urandom ls -R /nemonico > /dev/urandom date > /dev/urandom date "+%s" > /dev/urandom cat /proc/diskstats > /dev/urandom cat /proc/meminfo > /dev/urandom cat /proc/slabinfo > /dev/urandom cat /proc/interrupts > /dev/urandom
Shell
#!/bin/bash # $Id$ . /etc/scripts/env . /etc/scripts/utils.fn . /nemonico/BOOT echo $$ > /tmp/getpassword_remote.sh.pid count=0 pass1="0" while [ "$pass1" != "$pass2" ]; do if [ "$count" = "3" ]; then echo "Reboot ..." reboot fi if [ "$count" != "0" ]; then echo "Passphrase do...
Shell
#!/bin/bash # vim: ts=2 syn=sh # 1. Load kernel mods # 2. Load bootnet/sshd # 3. Get passwd # 4. Open devices(md,enclayer) , not mount them # 5. make_key; mkswap # 6. Mount root, cp /etc/nemonico to initram and do the descriptors PATH=/sbin:/usr/sbin:/usr/local/sbin:/bin:/usr/bin ; export PATH LD_LIBRARY_PATH=/lib...
Shell
#!/bin/bash # $Id$ # ## Taken from OpenWRT Whiterussian RC5 RESOLV_CONF=/etc/resolv.conf case "$1" in deconfig) ifconfig $interface 0.0.0.0 ;; renew|bound) ifconfig $interface $ip \ netmask ${subnet:-255.255.255.0} \ broadcast $...
Shell
#!/bin/bash # $Id$ # ## Taken from OpenWRT Whiterussian RC5 RESOLV_CONF=/etc/resolv.conf case "$1" in deconfig) ifconfig $interface 0.0.0.0 ;; renew|bound) ifconfig $interface $ip \ netmask ${subnet:-255.255.255.0} \ broadcast $...
Shell
#!/bin/bash # XXX ifconfig -a > /dev/urandom date > /dev/urandom ls -R /nemonico > /dev/urandom date > /dev/urandom date "+%s" > /dev/urandom cat /proc/diskstats > /dev/urandom cat /proc/meminfo > /dev/urandom cat /proc/slabinfo > /dev/urandom cat /proc/interrupts > /dev/urandom
Shell
#!/bin/bash # $Id$ . /etc/scripts/env . /etc/scripts/utils.fn . /nemonico/BOOT echo $$ > /tmp/getpassword_remote.sh.pid count=0 pass1="0" while [ "$pass1" != "$pass2" ]; do if [ "$count" = "3" ]; then echo "Reboot ..." reboot fi if [ "$count" != "0" ]; then echo "Passphrase do...
Shell
#!/bin/bash -x # desc: Add it to AUTOINSTALL:DO_CMD_ORDER for reseting # metadevice disks DISKS="" for l in $DISKS ; do mdadm --misc --zero-superblock $l || : done
Shell
#!/bin/bash -x # desc: Add it to AUTOINSTALL:DO_CMD_ORDER for reseting # metadevice disks DISKS="" for l in $DISKS ; do mdadm --misc --zero-superblock $l || : done
Shell
#!/bin/bash # $Id . /etc/scripts/env . /etc/scripts/common.fn . /etc/scripts/vault.fn date "+%s" > /var/tmp/aasp_timer while true; do if [ /var/tmp/aasp_timer ]; then t1="$(</var/tmp/aasp_timer)" t2="$(date "+%s")" if [ "$(($t1 + 240))" -lt "$t2" -a "$(<$disk_commit_switch_running)" = "0" ]; then...
Shell
#!/bin/bash # $Id$ kmoddir="/medium/kernel-modules/lib/modules/`uname -r`/" if [ -d $kmoddir ]; then mkdir -p /lib/modules rm -f /lib/modules/"`uname -r`" ln -bs "$kmoddir" /lib/modules/"`uname -r`" || exit 1 else echo " ERROR: Did not found a kernel modules directory on media `cat /var/tmp/cdrom_device`, exiti...
Shell
#!/bin/bash # $Id # wget update_tar # mktmpdir; unzip # tar list; cp from list local files; save # untar update # prompt for new screen . /etc/scripts/env . /etc/scripts/common.fn tmpdowndir="$(mktemp -d /tmp/tmp.XXXXXX)" tmptestdir="$(mktemp -d /tmp/tmp.XXXXXX)" source_addr="ftp://ftp.nemonico.org" update_file="/n...
Shell
#!/bin/bash # $Id$ kmoddir="/medium/kernel-modules/lib/modules/`uname -r`/" if [ -d $kmoddir ]; then mkdir -p /lib/modules rm -f /lib/modules/"`uname -r`" ln -bs "$kmoddir" /lib/modules/"`uname -r`" || exit 1 else echo " ERROR: Did not found a kernel modules directory on media `cat /var/tmp/cdrom_device`, exiti...
Shell
#!/bin/bash # $Id . /etc/scripts/env . /etc/scripts/common.fn . /etc/scripts/vault.fn date "+%s" > /var/tmp/aasp_timer while true; do if [ /var/tmp/aasp_timer ]; then t1="$(</var/tmp/aasp_timer)" t2="$(date "+%s")" if [ "$(($t1 + 240))" -lt "$t2" -a "$(<$disk_commit_switch_running)" = "0" ]; then...
Shell
#!/bin/bash # $Id # wget update_tar # mktmpdir; unzip # tar list; cp from list local files; save # untar update # prompt for new screen . /etc/scripts/env . /etc/scripts/common.fn tmpdowndir="$(mktemp -d /tmp/tmp.XXXXXX)" tmptestdir="$(mktemp -d /tmp/tmp.XXXXXX)" source_addr="ftp://ftp.nemonico.org" update_file="/n...
Shell
# $Id$ # PATH="/sbin:/usr/sbin:/usr/bin:/bin:/usr/local/bin:/usr/local/sbin:/etc/scripts:." TERM=linux PS1="["`tty`"] [\h]:# " PS2="> " HOME=/root export PATH DISPLAY TERM PS1 PS2 HOME umask 022 . /etc/scripts/env . /etc/scripts/common.fn . /etc/scripts/common.disks.fn . /etc/scripts/vault.fn . /etc/scripts/disk.fn ...
Shell
#!/bin/sh # rc.ieee1394: search for IEEE1394 (firewire) devices needed for installation. # # Taken from slackware 12, here for reference # This is a function to unload the IEEE1394 (firewire) modules: ieee1394_stop() { modprobe -r sbp2 ohci1394 modprobe -r ieee1394 } # This is a function to attempt to enable a ...
Shell
#!/bin/sh # This is a script to initialize udev, which populates the /dev # directory with device nodes, scans for devices, loads the # appropriate kernel modules, and configures the devices. # # Taken from slackware 12.2, with some mods :) # PATH="/sbin:/bin:/usr/sbin:/usr/bin:" OPT="" . /etc/udev/udev.conf # remo...
Shell
#!/bin/sh # rc.usb: search for USB devices needed for installation. # # Taken from slackware 12, here for reference # This is a function to unload the USB modules: usb_stop() { modprobe -r usb-storage keybdev mousedev usbmouse hid usbkbd \ input uhci usb-uhci usb-ohci uhci-hcd ohci-hcd ehci-hcd 2> /dev/null um...
Shell
#!/bin/sh # rc.ieee1394: search for IEEE1394 (firewire) devices needed for installation. # # Taken from slackware 12, here for reference # This is a function to unload the IEEE1394 (firewire) modules: ieee1394_stop() { modprobe -r sbp2 ohci1394 modprobe -r ieee1394 } # This is a function to attempt to enable a ...
Shell
#!/bin/sh # This is a script to initialize udev, which populates the /dev # directory with device nodes, scans for devices, loads the # appropriate kernel modules, and configures the devices. # # Taken from slackware 12.2, with some mods :) # PATH="/sbin:/bin:/usr/sbin:/usr/bin:" OPT="" . /etc/udev/udev.conf # remo...
Shell
#!/bin/sh # rc.usb: search for USB devices needed for installation. # # Taken from slackware 12, here for reference # This is a function to unload the USB modules: usb_stop() { modprobe -r usb-storage keybdev mousedev usbmouse hid usbkbd \ input uhci usb-uhci usb-ohci uhci-hcd ohci-hcd ehci-hcd 2> /dev/null um...
Shell
#!/bin/bash PATH=/bin:/usr/bin:/sbin:/usr/sbin:. export PATH HOME=/root export HOME /bin/echo "/init ...." /bin/hostname nemonico # Mount /bin/mount -v proc /proc -n -t proc /bin/mount -v sysfs /sys -n -t sysfs #/bin/mount -t tmpfs -o size=64M mdev /dev mkdir -p /dev/pts mount -t devpts devpts /dev/pts ln -s /pro...
Shell
#!/bin/bash PATH=/bin:/usr/bin:/sbin:/usr/sbin:. export PATH HOME=/root export HOME /bin/echo "/init ...." /bin/hostname nemonico # Mount /bin/mount -v proc /proc -n -t proc /bin/mount -v sysfs /sys -n -t sysfs #/bin/mount -t tmpfs -o size=64M mdev /dev mkdir -p /dev/pts mount -t devpts devpts /dev/pts ln -s /pro...
Shell
#!/bin/sh # $Id$ # ## Taken from OpenWRT Whiterussian RC5 RESOLV_CONF=/etc/resolv.conf . /etc/scripts/env case "$1" in deconfig) ifconfig $interface 0.0.0.0 ;; renew|bound) ifconfig $interface $ip \ netmask ${subnet:-255.255.255.0} \ ...
Shell
#!/bin/sh # $Id$ # ## Taken from OpenWRT Whiterussian RC5 RESOLV_CONF=/etc/resolv.conf . /etc/scripts/env case "$1" in deconfig) ifconfig $interface 0.0.0.0 ;; renew|bound) ifconfig $interface $ip \ netmask ${subnet:-255.255.255.0} \ ...
Shell
#!/bin/sh # rc.modules 12.1 Wed Mar 5 23:51:09 CST 2008 pp (rb), pjv # # This file loads extra drivers into the Linux kernel. # # The modules will be looked for under /lib/modules/<kernel version number> # On systems using KMOD and hotplug or udev this file should remain mostly # commented out. Nearly all hardware ...
Shell
#!/bin/sh # # Taken from: http://fasmz.org/~pterjan/qemu-ifup # # Sample /etc/qemu-ifup to have bridged networking between qemu instances and your real net # You need "youruser ALL=(root) NOPASSWD: /etc/qemu-ifup" in /etc/sudoers # You also need enough rights on /dev/tun if [ $UID -ne 0 ] then sudo $0 $1 exit fi /sbi...
Shell
#! /bin/sh - RCSID='$Id: MAKEDEV 2.3 1997/09/29 19:03:13 johnsonm Exp $' #---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---# # Customisation: # The devices fall into various classes. This section contains the mapping # from a class name into a group name and permission. # You will almos...
Shell
( cd etc/rc.d; cat rc.local.rng-tools.append >> rc.local ) ( cd etc/rc.d; rm -f rc.local.rng-tools.append )
Shell
#!/bin/sh NEMO_ROOT=${NEMO_ROOT:-/lib/nemo} export NEMO_ROOT if [ "`id -u`" = "0" ]; then PATH=$NEMO_ROOT/bin:$PATH ; export PATH fi
Shell
#!/bin/sh NEMO_ROOT=${NEMO_ROOT:-/lib/nemo} export NEMO_ROOT if [ "`id -u`" = "0" ]; then PATH=$NEMO_ROOT/bin:$PATH ; export PATH fi
Shell
#!/bin/sh # # Taken from: http://fasmz.org/~pterjan/qemu-ifup # # Sample /etc/qemu-ifup to have bridged networking between qemu instances and your real net # You need "youruser ALL=(root) NOPASSWD: /etc/qemu-ifup" in /etc/sudoers # You also need enough rights on /dev/tun if [ $UID -ne 0 ] then sudo $0 $1 exit fi /sbi...
Shell
#! /bin/sh - RCSID='$Id: MAKEDEV 2.3 1997/09/29 19:03:13 johnsonm Exp $' #---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---# # Customisation: # The devices fall into various classes. This section contains the mapping # from a class name into a group name and permission. # You will almos...
Shell
#!/bin/bash # $Id$ tmpmnt="`mktemp -d /tmp/tmp.XXXXXX`" if [ -L /dev/cdrom ]; then mount -o ro -t iso9660 /dev/cdrom $tmpmnt 2> /dev/null if [ $? = 0 ]; then echo /dev/cdrom > /var/tmp/cdrom_device umount -f $tmpmnt 2>/dev/null exit 0 fi fi for device in /dev/hd[a-z]; do mount -o ro -t iso9660 $device ...
Shell
#!/bin/bash # $Id$ # desc: output /var/tmp/sd[a-z][0-9] as text file, in it desc and size # of the device, and to stdout export syspath=/sys/block # ex. usblist="sda1 sdb" export usblist="" export tmpmnt="`mktemp -d /tmp/tmp.XXXXXX`" find_dev_m1 () { for l in a b c d e f g h i j k l m n o p q r s t u v w x y z...
Shell
#!/bin/bash # $Id$ # desc: output /var/tmp/sd[a-z][0-9] as text file, in it desc and size # of the device, and to stdout export syspath=/sys/block # ex. usblist="sda1 sdb" export usblist="" export tmpmnt="`mktemp -d /tmp/tmp.XXXXXX`" find_dev_m1 () { for l in a b c d e f g h i j k l m n o p q r s t u v w x y z...
Shell
#!/bin/bash # $Id$ tmpmnt="`mktemp -d /tmp/tmp.XXXXXX`" if [ -L /dev/cdrom ]; then mount -o ro -t iso9660 /dev/cdrom $tmpmnt 2> /dev/null if [ $? = 0 ]; then echo /dev/cdrom > /var/tmp/cdrom_device umount -f $tmpmnt 2>/dev/null exit 0 fi fi for device in /dev/hd[a-z]; do mount -o ro -t iso9660 $device ...
Shell
#!/bin/bash # $Id: MAKECD 716 2010-08-03 06:24:13Z ant_code $ set -eETa set -o pipefail . ./files/env . ./files/buildscripts.fn trap '_chk_err' INT HUP TERM ERR # not very usefull, but export -f _chk_err export wd=`pwd` make_auxbuildroot () { ./bin/mk-dir-struct.sh ./bin/fetch-src non_slackware_build # if build h...
Shell
#!/bin/bash # $Id$ set -eETa set -o pipefail . ./files/env . ./files/buildscripts.fn trap '_chk_err' INT HUP TERM ERR # not very usefull, but export -f _chk_err export wd=`pwd` make_auxbuildroot () { ./bin/mk-dir-struct.sh ./bin/fetch-src non_slackware_build # if build host is not slackware ./bin/build-auxbuildr...
Shell
#!/bin/bash # $Id: cp-slackware-sets.sh 636 2010-01-17 17:19:29Z ant_code $ wd="`pwd`" . $wd/env if [ "$UID" != "0" ]; then echo "ERROR: must run as root" exit 1 fi echo "" echo " For Slackware $slackware_version" echo "" echo " This script will copy all packages that appear listed in: " echo " ./files/install...
Shell
#!/bin/bash # $Id: prepare_autoinstall.sh 717 2010-08-20 14:24:59Z ant_code $ wd=`pwd` if [ -d $wd/files ]; then . $wd/files/env . $wd/files/common-scripts/common.fn . $wd/files/common-scripts/common.disks.fn . $wd/files/common-scripts/boot.fn misc_files_dir=$wd/files/installcd-initrd/$misc_files_dir else . $(d...
Shell
#!/bin/sh -e # $Id: mk-pkglist-from-cksum.sh 636 2010-01-17 17:19:29Z ant_code $ wd="`pwd`" time="`date "+%s"`" tmp_pkglist="$(mktemp -d -p $wd/tmp pkglist.XXXXXX)" . $wd/env if [ ! -f "$1" ]; then echo "" echo -n " Enter path to the CHECKSUMS.md5 file: " read cksum_file fi cksum_file=${1:-$cksum_file} if [ -f "...
Shell