diff options
Diffstat (limited to 'meta/packages/initscripts/initscripts-1.0')
31 files changed, 0 insertions, 1729 deletions
diff --git a/meta/packages/initscripts/initscripts-1.0/arm/alignment.sh b/meta/packages/initscripts/initscripts-1.0/arm/alignment.sh deleted file mode 100644 index b577b9a03a..0000000000 --- a/meta/packages/initscripts/initscripts-1.0/arm/alignment.sh +++ /dev/null | |||
| @@ -1,13 +0,0 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | ### BEGIN INIT INFO | ||
| 3 | # Provides: alignment | ||
| 4 | # Required-Start: mountkernfs | ||
| 5 | # Required-Stop: mountkernfs | ||
| 6 | # Default-Start: S | ||
| 7 | # Default-Stop: | ||
| 8 | ### END INIT INFO | ||
| 9 | |||
| 10 | if [ -e /proc/cpu/alignment ]; then | ||
| 11 | echo "3" > /proc/cpu/alignment | ||
| 12 | fi | ||
| 13 | |||
diff --git a/meta/packages/initscripts/initscripts-1.0/banner.sh b/meta/packages/initscripts/initscripts-1.0/banner.sh deleted file mode 100644 index 9e2b091252..0000000000 --- a/meta/packages/initscripts/initscripts-1.0/banner.sh +++ /dev/null | |||
| @@ -1,24 +0,0 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | ### BEGIN INIT INFO | ||
| 3 | # Provides: banner | ||
| 4 | # Required-Start: | ||
| 5 | # Required-Stop: | ||
| 6 | # Default-Start: S | ||
| 7 | # Default-Stop: | ||
| 8 | ### END INIT INFO | ||
| 9 | |||
| 10 | if [ ! -e /dev/tty ]; then | ||
| 11 | /bin/mknod -m 0666 /dev/tty c 5 0 | ||
| 12 | fi | ||
| 13 | |||
| 14 | if ( > /dev/tty0 ) 2>/dev/null; then | ||
| 15 | vtmaster=/dev/tty0 | ||
| 16 | elif ( > /dev/vc/0 ) 2>/dev/null; then | ||
| 17 | vtmaster=/dev/vc/0 | ||
| 18 | elif ( > /dev/console ) 2>/dev/null; then | ||
| 19 | vtmaster=/dev/console | ||
| 20 | else | ||
| 21 | vtmaster=/dev/null | ||
| 22 | fi | ||
| 23 | echo > $vtmaster | ||
| 24 | echo "Please wait: booting..." > $vtmaster | ||
diff --git a/meta/packages/initscripts/initscripts-1.0/bootmisc.sh b/meta/packages/initscripts/initscripts-1.0/bootmisc.sh deleted file mode 100755 index bd11f9a2fc..0000000000 --- a/meta/packages/initscripts/initscripts-1.0/bootmisc.sh +++ /dev/null | |||
| @@ -1,78 +0,0 @@ | |||
| 1 | ### BEGIN INIT INFO | ||
| 2 | # Provides: bootmisc | ||
| 3 | # Required-Start: $local_fs mountvirtfs | ||
| 4 | # Required-Stop: $local_fs | ||
| 5 | # Default-Start: S | ||
| 6 | # Default-Stop: 0 6 | ||
| 7 | # Short-Description: Misc and other. | ||
| 8 | ### END INIT INFO | ||
| 9 | |||
| 10 | . /etc/default/rcS | ||
| 11 | # | ||
| 12 | # Put a nologin file in /etc to prevent people from logging in before | ||
| 13 | # system startup is complete. | ||
| 14 | # | ||
| 15 | if test "$DELAYLOGIN" = yes | ||
| 16 | then | ||
| 17 | echo "System bootup in progress - please wait" > /etc/nologin | ||
| 18 | cp /etc/nologin /etc/nologin.boot | ||
| 19 | fi | ||
| 20 | |||
| 21 | # | ||
| 22 | # Set pseudo-terminal access permissions. | ||
| 23 | # | ||
| 24 | if test -c /dev/ttyp0 | ||
| 25 | then | ||
| 26 | chmod 666 /dev/tty[p-za-e][0-9a-f] | ||
| 27 | chown root:tty /dev/tty[p-za-e][0-9a-f] | ||
| 28 | fi | ||
| 29 | |||
| 30 | # | ||
| 31 | # Apply /proc settings if defined | ||
| 32 | # | ||
| 33 | SYSCTL_CONF="/etc/sysctl.conf" | ||
| 34 | if [ -f "${SYSCTL_CONF}" ] | ||
| 35 | then | ||
| 36 | if [ -x "/sbin/sysctl" ] | ||
| 37 | then | ||
| 38 | /sbin/sysctl -p "${SYSCTL_CONF}" | ||
| 39 | else | ||
| 40 | echo "To have ${SYSCTL_CONF} applied during boot, install package <procps>." | ||
| 41 | fi | ||
| 42 | fi | ||
| 43 | |||
| 44 | # | ||
| 45 | # Update /etc/motd. | ||
| 46 | # | ||
| 47 | if test "$EDITMOTD" != no | ||
| 48 | then | ||
| 49 | uname -a > /etc/motd.tmp | ||
| 50 | sed 1d /etc/motd >> /etc/motd.tmp | ||
| 51 | mv /etc/motd.tmp /etc/motd | ||
| 52 | fi | ||
| 53 | |||
| 54 | # | ||
| 55 | # This is as good a place as any for a sanity check | ||
| 56 | # /tmp should be a symlink to /var/tmp to cut down on the number | ||
| 57 | # of mounted ramdisks. | ||
| 58 | if test ! -L /tmp && test -d /var/tmp | ||
| 59 | then | ||
| 60 | rm -rf /tmp | ||
| 61 | ln -sf /var/tmp /tmp | ||
| 62 | fi | ||
| 63 | |||
| 64 | # Set the system clock from hardware clock | ||
| 65 | # If the timestamp is 1 day or more recent than the current time, | ||
| 66 | # use the timestamp instead. | ||
| 67 | /etc/init.d/hwclock.sh start | ||
| 68 | if test -e /etc/timestamp2 | ||
| 69 | then | ||
| 70 | SYSTEMDATE=`date "+%Y%m%d%2H%2M"` | ||
| 71 | read TIMESTAMP < /etc/timestamp2 | ||
| 72 | NEEDUPDATE=`expr \( $TIMESTAMP \> $SYSTEMDATE + 10000 \)` | ||
| 73 | if [ $NEEDUPDATE -eq 1 ]; then | ||
| 74 | date $TIMESTAMP | ||
| 75 | /etc/init.d/hwclock.sh stop | ||
| 76 | fi | ||
| 77 | fi | ||
| 78 | : exit 0 | ||
diff --git a/meta/packages/initscripts/initscripts-1.0/checkfs.sh b/meta/packages/initscripts/initscripts-1.0/checkfs.sh deleted file mode 100755 index 91897d4cbb..0000000000 --- a/meta/packages/initscripts/initscripts-1.0/checkfs.sh +++ /dev/null | |||
| @@ -1,49 +0,0 @@ | |||
| 1 | ### BEGIN INIT INFO | ||
| 2 | # Provides: checkfs | ||
| 3 | # Required-Start: checkroot | ||
| 4 | # Required-Stop: | ||
| 5 | # Default-Start: S | ||
| 6 | # Default-Stop: | ||
| 7 | # Short-Description: Check all other file systems | ||
| 8 | ### END INIT INFO | ||
| 9 | |||
| 10 | . /etc/default/rcS | ||
| 11 | |||
| 12 | # | ||
| 13 | # Check the rest of the filesystems. | ||
| 14 | # | ||
| 15 | if test ! -f /fastboot | ||
| 16 | then | ||
| 17 | if test -f /forcefsck | ||
| 18 | then | ||
| 19 | force="-f" | ||
| 20 | else | ||
| 21 | force="" | ||
| 22 | fi | ||
| 23 | if test "$FSCKFIX" = yes | ||
| 24 | then | ||
| 25 | fix="-y" | ||
| 26 | else | ||
| 27 | fix="-a" | ||
| 28 | fi | ||
| 29 | spinner="-C" | ||
| 30 | case "$TERM" in | ||
| 31 | dumb|network|unknown|"") spinner="" ;; | ||
| 32 | esac | ||
| 33 | test "`uname -m`" = "s390" && spinner="" # This should go away | ||
| 34 | test "$VERBOSE" != no && echo "Checking all filesystems..." | ||
| 35 | fsck $spinner -R -A $fix $force | ||
| 36 | if test "$?" -gt 1 | ||
| 37 | then | ||
| 38 | echo | ||
| 39 | echo "fsck failed. Please repair manually." | ||
| 40 | echo | ||
| 41 | echo "CONTROL-D will exit from this shell and continue system startup." | ||
| 42 | echo | ||
| 43 | # Start a single user shell on the console | ||
| 44 | /sbin/sulogin $CONSOLE | ||
| 45 | fi | ||
| 46 | fi | ||
| 47 | rm -f /fastboot /forcefsck | ||
| 48 | |||
| 49 | : exit 0 | ||
diff --git a/meta/packages/initscripts/initscripts-1.0/checkroot.sh b/meta/packages/initscripts/initscripts-1.0/checkroot.sh deleted file mode 100755 index 02697ce9bf..0000000000 --- a/meta/packages/initscripts/initscripts-1.0/checkroot.sh +++ /dev/null | |||
| @@ -1,137 +0,0 @@ | |||
| 1 | ### BEGIN INIT INFO | ||
| 2 | # Provides: checkroot | ||
| 3 | # Required-Start: udev | ||
| 4 | # Required-Stop: | ||
| 5 | # Default-Start: S | ||
| 6 | # Default-Stop: | ||
| 7 | # Short-Description: Check to root file system. | ||
| 8 | ### END INIT INFO | ||
| 9 | |||
| 10 | . /etc/default/rcS | ||
| 11 | |||
| 12 | # | ||
| 13 | # Set SULOGIN in /etc/default/rcS to yes if you want a sulogin to be spawned | ||
| 14 | # from this script *before anything else* with a timeout, like SCO does. | ||
| 15 | # | ||
| 16 | test "$SULOGIN" = yes && sulogin -t 30 $CONSOLE | ||
| 17 | |||
| 18 | # | ||
| 19 | # Read /etc/fstab. | ||
| 20 | # | ||
| 21 | exec 9< /etc/fstab | ||
| 22 | rootmode=rw | ||
| 23 | rootopts=rw | ||
| 24 | rootcheck=no | ||
| 25 | swap_on_md=no | ||
| 26 | devfs= | ||
| 27 | while read fs mnt type opts dump pass junk <&9 | ||
| 28 | do | ||
| 29 | case "$fs" in | ||
| 30 | ""|\#*) | ||
| 31 | continue; | ||
| 32 | ;; | ||
| 33 | /dev/md*) | ||
| 34 | # Swap on md device. | ||
| 35 | test "$type" = swap && swap_on_md=yes | ||
| 36 | ;; | ||
| 37 | /dev/*) | ||
| 38 | ;; | ||
| 39 | *) | ||
| 40 | # Might be a swapfile. | ||
| 41 | test "$type" = swap && swap_on_md=yes | ||
| 42 | ;; | ||
| 43 | esac | ||
| 44 | test "$type" = devfs && devfs="$fs" | ||
| 45 | test "$mnt" != / && continue | ||
| 46 | rootopts="$opts" | ||
| 47 | test "$pass" = 0 -o "$pass" = "" && rootcheck=no | ||
| 48 | case "$opts" in | ||
| 49 | ro|ro,*|*,ro|*,ro,*) | ||
| 50 | rootmode=ro | ||
| 51 | ;; | ||
| 52 | esac | ||
| 53 | done | ||
| 54 | exec 0>&9 9>&- | ||
| 55 | |||
| 56 | # | ||
| 57 | # Activate the swap device(s) in /etc/fstab. This needs to be done | ||
| 58 | # before fsck, since fsck can be quite memory-hungry. | ||
| 59 | # | ||
| 60 | test "$VERBOSE" != no && echo "Activating swap" | ||
| 61 | swapon -a 2> /dev/null | ||
| 62 | |||
| 63 | # | ||
| 64 | # Check the root filesystem. | ||
| 65 | # | ||
| 66 | if test -f /fastboot || test $rootcheck = no | ||
| 67 | then | ||
| 68 | test $rootcheck = yes && echo "Fast boot, no filesystem check" | ||
| 69 | else | ||
| 70 | # | ||
| 71 | # Ensure that root is quiescent and read-only before fsck'ing. | ||
| 72 | # | ||
| 73 | mount -n -o remount,ro / | ||
| 74 | if test $? = 0 | ||
| 75 | then | ||
| 76 | if test -f /forcefsck | ||
| 77 | then | ||
| 78 | force="-f" | ||
| 79 | else | ||
| 80 | force="" | ||
| 81 | fi | ||
| 82 | if test "$FSCKFIX" = yes | ||
| 83 | then | ||
| 84 | fix="-y" | ||
| 85 | else | ||
| 86 | fix="-a" | ||
| 87 | fi | ||
| 88 | spinner="-C" | ||
| 89 | case "$TERM" in | ||
| 90 | dumb|network|unknown|"") spinner="" ;; | ||
| 91 | esac | ||
| 92 | test `uname -m` = s390 && spinner="" # This should go away | ||
| 93 | test "$VERBOSE" != no && echo "Checking root filesystem..." | ||
| 94 | fsck $spinner $force $fix / | ||
| 95 | # | ||
| 96 | # If there was a failure, drop into single-user mode. | ||
| 97 | # | ||
| 98 | # NOTE: "failure" is defined as exiting with a return code of | ||
| 99 | # 2 or larger. A return code of 1 indicates that filesystem | ||
| 100 | # errors were corrected but that the boot may proceed. | ||
| 101 | # | ||
| 102 | if test "$?" -gt 1 | ||
| 103 | then | ||
| 104 | # Surprise! Re-directing from a HERE document (as in | ||
| 105 | # "cat << EOF") won't work, because the root is read-only. | ||
| 106 | echo | ||
| 107 | echo "fsck failed. Please repair manually and reboot. Please note" | ||
| 108 | echo "that the root filesystem is currently mounted read-only. To" | ||
| 109 | echo "remount it read-write:" | ||
| 110 | echo | ||
| 111 | echo " # mount -n -o remount,rw /" | ||
| 112 | echo | ||
| 113 | echo "CONTROL-D will exit from this shell and REBOOT the system." | ||
| 114 | echo | ||
| 115 | # Start a single user shell on the console | ||
| 116 | /sbin/sulogin $CONSOLE | ||
| 117 | reboot -f | ||
| 118 | fi | ||
| 119 | else | ||
| 120 | echo "*** ERROR! Cannot fsck root fs because it is not mounted read-only!" | ||
| 121 | echo | ||
| 122 | fi | ||
| 123 | fi | ||
| 124 | |||
| 125 | # | ||
| 126 | # If the root filesystem was not marked as read-only in /etc/fstab, | ||
| 127 | # remount the rootfs rw but do not try to change mtab because it | ||
| 128 | # is on a ro fs until the remount succeeded. Then clean up old mtabs | ||
| 129 | # and finally write the new mtab. | ||
| 130 | # | ||
| 131 | mount -n -o remount,$rootmode / | ||
| 132 | if test "$rootmode" = rw | ||
| 133 | then | ||
| 134 | ln -sf /proc/mounts /dev/mtab | ||
| 135 | fi | ||
| 136 | |||
| 137 | : exit 0 | ||
diff --git a/meta/packages/initscripts/initscripts-1.0/device_table.txt b/meta/packages/initscripts/initscripts-1.0/device_table.txt deleted file mode 100644 index a302c5aca3..0000000000 --- a/meta/packages/initscripts/initscripts-1.0/device_table.txt +++ /dev/null | |||
| @@ -1,197 +0,0 @@ | |||
| 1 | #/dev/ d 775 0 0 - - - - - | ||
| 2 | #/dev/msys d 775 0 0 - - - - - | ||
| 3 | #/dev/pts d 775 0 0 - - - - - | ||
| 4 | #/var d 775 0 0 - - - - - | ||
| 5 | /boot/var/empty d 755 0 3 - - - - | ||
| 6 | /dev/apm_bios c 660 0 46 10 134 - - - | ||
| 7 | /dev/audio c 660 0 29 14 4 - - - | ||
| 8 | /dev/audio1 c 660 0 29 14 20 - - - | ||
| 9 | /dev/audio2 c 660 0 29 14 36 - - - | ||
| 10 | /dev/audio3 c 660 0 29 14 52 - - - | ||
| 11 | /dev/bty c 644 0 0 60 0 0 1 5 | ||
| 12 | /dev/sharp_fl c 640 0 44 254 0 - - - | ||
| 13 | /dev/console c 660 0 5 5 1 - - | ||
| 14 | /dev/cusa0 c 640 0 0 205 5 - - - | ||
| 15 | /dev/cusa1 c 640 0 0 205 6 - - - | ||
| 16 | /dev/cusa2 c 640 0 0 205 7 - - - | ||
| 17 | /dev/dsp c 660 0 29 14 3 - - - | ||
| 18 | /dev/dsp1 c 660 0 29 14 19 - - - | ||
| 19 | /dev/dsp2 c 660 0 29 14 35 - - - | ||
| 20 | /dev/dsp3 c 660 0 29 14 51 - - - | ||
| 21 | /dev/fb c 660 0 44 29 0 0 32 2 | ||
| 22 | /dev/fb0autodetect c 660 0 44 29 1 - - - | ||
| 23 | /dev/fb0current c 660 0 44 29 0 - - - | ||
| 24 | #/dev/fb1 c 660 0 44 29 32 - - - | ||
| 25 | /dev/fb1autodetect c 660 0 44 29 33 - - - | ||
| 26 | /dev/fb1current c 660 0 44 29 32 - - - | ||
| 27 | /dev/full c 666 0 7 - - - | ||
| 28 | /dev/hda b 660 0 6 3 0 - - - | ||
| 29 | /dev/hda b 660 0 6 3 1 1 1 20 | ||
| 30 | /dev/hdb b 660 0 6 3 64 - - - | ||
| 31 | /dev/hdb b 660 0 6 3 65 1 1 20 | ||
| 32 | /dev/hdc b 660 0 6 22 0 - - - | ||
| 33 | /dev/hdc b 660 0 6 22 1 1 1 20 | ||
| 34 | /dev/initctl p 600 0 0 - - - - | ||
| 35 | /dev/i2c0 c 660 0 0 89 0 - - - | ||
| 36 | /dev/inportbm c 660 0 0 10 2 - - - | ||
| 37 | /dev/input/event c 660 0 0 13 64 0 1 20 | ||
| 38 | /dev/ircomm0 c 640 0 0 161 0 - - - | ||
| 39 | /dev/jbm c 660 0 0 10 4 - - - | ||
| 40 | /dev/kmem c 640 0 15 1 2 - - - | ||
| 41 | /dev/lirc c 660 0 5 61 0 - - - | ||
| 42 | /dev/logibm c 660 0 0 10 0 - - - | ||
| 43 | /dev/loop0 b 660 0 11 7 0 - - - | ||
| 44 | /dev/loop1 b 660 0 11 7 1 - - - | ||
| 45 | /dev/mem c 640 0 15 1 1 - - - | ||
| 46 | /dev/mixer c 666 0 0 14 0 - - - | ||
| 47 | /dev/mixer1 c 666 0 0 14 16 - - - | ||
| 48 | /dev/mixer2 c 666 0 0 14 32 - - - | ||
| 49 | /dev/mixer3 c 666 0 0 14 48 - - - | ||
| 50 | /dev/mmcda b 640 0 0 60 0 - - - | ||
| 51 | /dev/mmcda1 b 640 0 0 60 1 - - - | ||
| 52 | /dev/mmcda2 b 640 0 0 60 2 - - - | ||
| 53 | /dev/msys/fla b 660 0 11 100 0 - - - | ||
| 54 | /dev/msys/fla1 b 660 0 11 100 1 - - - | ||
| 55 | /dev/msys/fla2 b 660 0 11 100 2 - - - | ||
| 56 | /dev/msys/fla3 b 660 0 11 100 3 - - - | ||
| 57 | /dev/msys/fla4 b 660 0 11 100 4 - - - | ||
| 58 | /dev/msys/flb b 660 0 11 100 64 - - - | ||
| 59 | /dev/msys/flb1 b 660 0 11 100 65 - - - | ||
| 60 | /dev/msys/flb2 b 660 0 11 100 66 - - - | ||
| 61 | /dev/msys/flb3 b 660 0 11 100 67 - - - | ||
| 62 | /dev/msys/flb4 b 660 0 11 100 68 - - - | ||
| 63 | /dev/mtd c 660 0 6 90 0 0 2 8 | ||
| 64 | /dev/mtdblock b 640 0 0 31 0 0 1 8 | ||
| 65 | /dev/nst0 c 664 0 11 9 128 - - - | ||
| 66 | /dev/nst0a c 664 0 11 9 224 - - - | ||
| 67 | /dev/nst0l c 664 0 11 9 160 - - - | ||
| 68 | /dev/nst0m c 664 0 11 9 192 - - - | ||
| 69 | /dev/nst1 c 664 0 11 9 129 - - - | ||
| 70 | /dev/nst1a c 664 0 11 9 225 - - - | ||
| 71 | /dev/nst1l c 664 0 11 9 161 - - - | ||
| 72 | /dev/nst1m c 664 0 11 9 193 - - - | ||
| 73 | /dev/null c 666 0 0 1 3 - - - | ||
| 74 | /dev/par0 c 660 0 7 6 0 - - - | ||
| 75 | /dev/par1 c 660 0 7 6 1 - - - | ||
| 76 | /dev/par2 c 660 0 7 6 2 - - - | ||
| 77 | /dev/port c 640 0 15 1 4 - - - | ||
| 78 | /dev/ppp c 640 0 0 108 0 - - - | ||
| 79 | /dev/psaux c 660 0 0 10 1 - - - | ||
| 80 | /dev/ptmx c 666 0 5 5 2 - - - | ||
| 81 | /dev/ptya0 c 660 0 5 2 176 - - - | ||
| 82 | /dev/ptya1 c 660 0 5 2 177 - - - | ||
| 83 | /dev/ptya2 c 660 0 5 2 178 - - - | ||
| 84 | /dev/ptya3 c 660 0 5 2 179 - - - | ||
| 85 | /dev/ptya4 c 660 0 5 2 180 - - - | ||
| 86 | /dev/ptya5 c 660 0 5 2 181 - - - | ||
| 87 | /dev/ptya6 c 660 0 5 2 182 - - - | ||
| 88 | /dev/ptya7 c 660 0 5 2 183 - - - | ||
| 89 | /dev/ptya8 c 660 0 5 2 184 - - - | ||
| 90 | /dev/ptya9 c 660 0 5 2 185 - - - | ||
| 91 | /dev/ptyaa c 660 0 5 2 186 - - - | ||
| 92 | /dev/ptyab c 660 0 5 2 187 - - - | ||
| 93 | /dev/ptyac c 660 0 5 2 188 - - - | ||
| 94 | /dev/ptyad c 660 0 5 2 189 - - - | ||
| 95 | /dev/ptyae c 660 0 5 2 190 - - - | ||
| 96 | /dev/ptyaf c 660 0 5 2 191 - - - | ||
| 97 | /dev/ram b 640 0 0 1 0 0 1 4 | ||
| 98 | /dev/random c 444 0 0 1 8 - - - | ||
| 99 | /dev/rfcomm0 c 660 0 0 216 0 - - - | ||
| 100 | /dev/rfcomm1 c 660 0 0 216 1 - - - | ||
| 101 | /dev/rfcomm2 c 660 0 0 216 2 - - - | ||
| 102 | /dev/rfcomm3 c 660 0 0 216 3 - - - | ||
| 103 | /dev/rfcomm4 c 660 0 0 216 4 - - - | ||
| 104 | /dev/rfcomm5 c 660 0 0 216 5 - - - | ||
| 105 | /dev/rfcomm6 c 660 0 0 216 6 - - - | ||
| 106 | /dev/rfcomm7 c 660 0 0 216 7 - - - | ||
| 107 | /dev/rfcomm8 c 660 0 0 216 8 - - - | ||
| 108 | /dev/rfcomm9 c 660 0 0 216 9 - - - | ||
| 109 | /dev/rfcomm10 c 660 0 0 216 10 - - - | ||
| 110 | /dev/rfcomm11 c 660 0 0 216 11 - - - | ||
| 111 | /dev/rfcomm12 c 660 0 0 216 12 - - - | ||
| 112 | /dev/rfcomm13 c 660 0 0 216 13 - - - | ||
| 113 | /dev/rfcomm14 c 660 0 0 216 14 - - - | ||
| 114 | /dev/rfcomm15 c 660 0 0 216 15 - - - | ||
| 115 | /dev/rmidi0 c 660 0 0 35 64 - - - | ||
| 116 | /dev/rmidi1 c 660 0 0 35 65 - - - | ||
| 117 | /dev/rmidi2 c 660 0 0 35 66 - - - | ||
| 118 | /dev/rmidi3 c 660 0 0 35 67 - - - | ||
| 119 | /dev/rtc c 660 0 47 10 135 - - - | ||
| 120 | /dev/scd0 b 660 0 6 11 0 - - - | ||
| 121 | /dev/scd1 b 660 0 6 11 1 - - - | ||
| 122 | /dev/sda b 660 0 6 8 0 - - - | ||
| 123 | /dev/sda1 b 660 0 6 8 1 - - - | ||
| 124 | /dev/sda2 b 660 0 6 8 2 - - - | ||
| 125 | /dev/sda3 b 660 0 6 8 3 - - - | ||
| 126 | /dev/sda4 b 660 0 6 8 4 - - - | ||
| 127 | /dev/sda5 b 660 0 6 8 5 - - - | ||
| 128 | /dev/sda6 b 660 0 6 8 6 - - - | ||
| 129 | /dev/sda7 b 660 0 6 8 7 - - - | ||
| 130 | /dev/sda8 b 660 0 6 8 8 - - - | ||
| 131 | /dev/sda9 b 660 0 6 8 9 - - - | ||
| 132 | /dev/sdb b 660 0 6 8 16 - - - | ||
| 133 | /dev/sdb1 b 660 0 6 8 17 - - - | ||
| 134 | /dev/sdb2 b 660 0 6 8 18 - - - | ||
| 135 | /dev/sdb3 b 660 0 6 8 19 - - - | ||
| 136 | /dev/sdb4 b 660 0 6 8 20 - - - | ||
| 137 | /dev/sdb5 b 660 0 6 8 21 - - - | ||
| 138 | /dev/sdb6 b 660 0 6 8 22 - - - | ||
| 139 | /dev/sdb7 b 660 0 6 8 23 - - - | ||
| 140 | /dev/sdb8 b 660 0 6 8 24 - - - | ||
| 141 | /dev/sdb9 b 660 0 6 8 25 - - - | ||
| 142 | /dev/sdc b 660 0 6 8 32 - - - | ||
| 143 | /dev/sdc1 b 660 0 6 8 33 - - - | ||
| 144 | /dev/sdc2 b 660 0 6 8 34 - - - | ||
| 145 | /dev/sdc3 b 660 0 6 8 35 - - - | ||
| 146 | /dev/sdc4 b 660 0 6 8 36 - - - | ||
| 147 | /dev/sdc5 b 660 0 6 8 37 - - - | ||
| 148 | /dev/sdc6 b 660 0 6 8 38 - - - | ||
| 149 | /dev/sdc7 b 660 0 6 8 39 - - - | ||
| 150 | /dev/sdc8 b 660 0 6 8 40 - - - | ||
| 151 | /dev/sdc9 b 660 0 6 8 41 - - - | ||
| 152 | /dev/sd_slotstat c 660 0 6 10 240 - - - | ||
| 153 | /dev/sharp_audioctl c 660 0 29 10 213 - - - | ||
| 154 | /dev/sharp_buz c 660 0 29 10 211 - - - | ||
| 155 | /dev/sharp_kbdctl c 660 0 45 10 214 - - - | ||
| 156 | /dev/sharp_led c 660 0 48 10 210 - - - | ||
| 157 | /dev/sharp_ts c 640 0 45 11 0 - - - | ||
| 158 | /dev/smtpe0 c 640 0 0 35 128 - - - | ||
| 159 | /dev/smtpe1 c 640 0 0 35 129 - - - | ||
| 160 | /dev/smtpe2 c 640 0 0 35 130 - - - | ||
| 161 | /dev/smtpe3 c 640 0 0 35 131 - - - | ||
| 162 | /dev/sndstat c 660 0 29 14 6 - - - | ||
| 163 | /dev/snd/seq c 660 0 0 116 1 - - - | ||
| 164 | /dev/snd/timer c 660 0 0 116 33 - - - | ||
| 165 | /dev/snd/controlC0 c 660 0 0 116 0 - - - | ||
| 166 | /dev/snd/controlC1 c 660 0 0 116 32 - - - | ||
| 167 | /dev/snd/controlC2 c 660 0 0 116 64 - - - | ||
| 168 | /dev/snd/controlC3 c 660 0 0 116 96 - - - | ||
| 169 | /dev/snd/hwC0D0 c 660 0 0 116 4 - - - | ||
| 170 | /dev/snd/hwC0D1 c 660 0 0 116 5 - - - | ||
| 171 | /dev/snd/hwC0D2 c 660 0 0 116 6 - - - | ||
| 172 | /dev/snd/hwC0D3 c 660 0 0 116 7 - - - | ||
| 173 | /dev/snd/pcmC0D0c c 660 0 0 116 24 - - - | ||
| 174 | /dev/snd/pcmC0D0p c 660 0 0 116 16 - - - | ||
| 175 | /dev/snd/pcmC0D1c c 660 0 0 116 25 - - - | ||
| 176 | /dev/snd/pcmC0D1p c 660 0 0 116 17 - - - | ||
| 177 | /dev/snd/pcmC0D2c c 660 0 0 116 26 - - - | ||
| 178 | /dev/snd/pcmC0D2p c 660 0 0 116 18 - - - | ||
| 179 | /dev/snd/pcmC0D3c c 660 0 0 116 27 - - - | ||
| 180 | /dev/snd/pcmC0D3p c 660 0 0 116 19 - - - | ||
| 181 | /dev/st0 c 660 0 11 9 0 - - - | ||
| 182 | /dev/st0a c 660 0 11 9 96 - - - | ||
| 183 | /dev/st0l c 660 0 11 9 32 - - - | ||
| 184 | /dev/st0m c 660 0 11 9 64 - - - | ||
| 185 | /dev/st1 c 660 0 11 9 1 - - - | ||
| 186 | /dev/st1a c 660 0 11 9 97 - - - | ||
| 187 | /dev/st1l c 660 0 11 9 33 - - - | ||
| 188 | /dev/st1m c 660 0 11 9 65 - - - | ||
| 189 | /dev/tty c 664 0 5 5 0 - - - | ||
| 190 | /dev/tty c 666 0 5 4 0 0 1 9 | ||
| 191 | /dev/ttyS c 640 0 5 4 64 0 1 4 | ||
| 192 | /dev/ttySA c 640 0 5 204 5 0 1 4 | ||
| 193 | /dev/ttyUSB c 660 0 5 188 0 0 1 2 | ||
| 194 | /dev/urandom c 644 0 0 1 9 - - - | ||
| 195 | /dev/usbmouse c 640 0 45 10 32 - - - | ||
| 196 | /dev/zero c 644 0 0 1 5 - - - | ||
| 197 | /dev/input/mice c 660 0 0 13 63 - - - | ||
diff --git a/meta/packages/initscripts/initscripts-1.0/devpts b/meta/packages/initscripts/initscripts-1.0/devpts deleted file mode 100644 index 4a0978b404..0000000000 --- a/meta/packages/initscripts/initscripts-1.0/devpts +++ /dev/null | |||
| @@ -1,5 +0,0 @@ | |||
| 1 | # GID of the `tty' group | ||
| 2 | TTYGRP=5 | ||
| 3 | |||
| 4 | # Set to 600 to have `mesg n' be the default | ||
| 5 | TTYMODE=620 | ||
diff --git a/meta/packages/initscripts/initscripts-1.0/devpts.sh b/meta/packages/initscripts/initscripts-1.0/devpts.sh deleted file mode 100755 index 18202adcc7..0000000000 --- a/meta/packages/initscripts/initscripts-1.0/devpts.sh +++ /dev/null | |||
| @@ -1,28 +0,0 @@ | |||
| 1 | #! /bin/sh | ||
| 2 | ### BEGIN INIT INFO | ||
| 3 | # Provides: devpts | ||
| 4 | # Required-Start: udev | ||
| 5 | # Required-Stop: | ||
| 6 | # Default-Start: S | ||
| 7 | # Default-Stop: | ||
| 8 | # Short-Description: Mount /dev/pts file systems. | ||
| 9 | ### END INIT INFO | ||
| 10 | |||
| 11 | . /etc/default/devpts | ||
| 12 | |||
| 13 | if grep -q devpts /proc/filesystems | ||
| 14 | then | ||
| 15 | # | ||
| 16 | # Create multiplexor device. | ||
| 17 | # | ||
| 18 | test -c /dev/ptmx || mknod -m 666 /dev/ptmx c 5 2 | ||
| 19 | |||
| 20 | # | ||
| 21 | # Mount /dev/pts if needed. | ||
| 22 | # | ||
| 23 | if ! grep -q devpts /proc/mounts | ||
| 24 | then | ||
| 25 | mkdir -p /dev/pts | ||
| 26 | mount -t devpts devpts /dev/pts -ogid=${TTYGRP},mode=${TTYMODE} | ||
| 27 | fi | ||
| 28 | fi | ||
diff --git a/meta/packages/initscripts/initscripts-1.0/finish.sh b/meta/packages/initscripts/initscripts-1.0/finish.sh deleted file mode 100755 index 183a384faa..0000000000 --- a/meta/packages/initscripts/initscripts-1.0/finish.sh +++ /dev/null | |||
| @@ -1,14 +0,0 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | ### BEGIN INIT INFO | ||
| 3 | # Provides: finish.sh | ||
| 4 | # Required-Start: $remote_fs rmnologin | ||
| 5 | # Required-Stop: | ||
| 6 | # Default-Start: 2 3 4 5 | ||
| 7 | # Default-Stop: | ||
| 8 | # Short-Description: Finish system start | ||
| 9 | # Description: | ||
| 10 | ### END INIT INFO | ||
| 11 | |||
| 12 | if ! test -e /etc/.configured; then | ||
| 13 | > /etc/.configured | ||
| 14 | fi | ||
diff --git a/meta/packages/initscripts/initscripts-1.0/functions b/meta/packages/initscripts/initscripts-1.0/functions deleted file mode 100644 index 689fd32b39..0000000000 --- a/meta/packages/initscripts/initscripts-1.0/functions +++ /dev/null | |||
| @@ -1,14 +0,0 @@ | |||
| 1 | # -*-Shell-script-*- | ||
| 2 | # | ||
| 3 | # functions This file contains functions to be used by most or all | ||
| 4 | # shell scripts in the /etc/init.d directory. | ||
| 5 | # | ||
| 6 | |||
| 7 | machine_id() { # return the machine ID | ||
| 8 | awk 'BEGIN { FS=": " } /Hardware/ { gsub(" ", "_", $2); print tolower($2) } ' </proc/cpuinfo | ||
| 9 | } | ||
| 10 | |||
| 11 | killproc() { # kill the named process(es) | ||
| 12 | pid=`/bin/pidof $1` | ||
| 13 | [ "$pid" != "" ] && kill $pid | ||
| 14 | } | ||
diff --git a/meta/packages/initscripts/initscripts-1.0/halt b/meta/packages/initscripts/initscripts-1.0/halt deleted file mode 100755 index 609b793b7c..0000000000 --- a/meta/packages/initscripts/initscripts-1.0/halt +++ /dev/null | |||
| @@ -1,29 +0,0 @@ | |||
| 1 | #! /bin/sh | ||
| 2 | ### BEGIN INIT INFO | ||
| 3 | # Provides: halt | ||
| 4 | # Required-Start: | ||
| 5 | # Required-Stop: | ||
| 6 | # Default-Start: | ||
| 7 | # Default-Stop: 0 | ||
| 8 | # Short-Description: Execute the halt command. | ||
| 9 | # Description: | ||
| 10 | ### END INIT INFO | ||
| 11 | |||
| 12 | PATH=/sbin:/bin:/usr/sbin:/usr/bin | ||
| 13 | |||
| 14 | # See if we need to cut the power. | ||
| 15 | if test -x /etc/init.d/ups-monitor | ||
| 16 | then | ||
| 17 | /etc/init.d/ups-monitor poweroff | ||
| 18 | fi | ||
| 19 | |||
| 20 | # Don't shut down drives if we're using RAID. | ||
| 21 | hddown="-h" | ||
| 22 | if grep -qs '^md.*active' /proc/mdstat | ||
| 23 | then | ||
| 24 | hddown="" | ||
| 25 | fi | ||
| 26 | |||
| 27 | halt -d -f -i -p $hddown | ||
| 28 | |||
| 29 | : exit 0 | ||
diff --git a/meta/packages/initscripts/initscripts-1.0/hostname.sh b/meta/packages/initscripts/initscripts-1.0/hostname.sh deleted file mode 100755 index 4399ee7b18..0000000000 --- a/meta/packages/initscripts/initscripts-1.0/hostname.sh +++ /dev/null | |||
| @@ -1,13 +0,0 @@ | |||
| 1 | ### BEGIN INIT INFO | ||
| 2 | # Provides: hostname | ||
| 3 | # Required-Start: | ||
| 4 | # Required-Stop: | ||
| 5 | # Default-Start: S | ||
| 6 | # Default-Stop: | ||
| 7 | # Short-Description: Set hostname based on /etc/hostname | ||
| 8 | ### END INIT INFO | ||
| 9 | |||
| 10 | if test -f /etc/hostname | ||
| 11 | then | ||
| 12 | hostname -F /etc/hostname | ||
| 13 | fi | ||
diff --git a/meta/packages/initscripts/initscripts-1.0/jornada6xx/checkroot.sh b/meta/packages/initscripts/initscripts-1.0/jornada6xx/checkroot.sh deleted file mode 100755 index 9e2d3cfc85..0000000000 --- a/meta/packages/initscripts/initscripts-1.0/jornada6xx/checkroot.sh +++ /dev/null | |||
| @@ -1,211 +0,0 @@ | |||
| 1 | # | ||
| 2 | # checkroot.sh Check to root filesystem. | ||
| 3 | # | ||
| 4 | # Version: @(#)checkroot.sh 2.84 25-Jan-2002 miquels@cistron.nl | ||
| 5 | # | ||
| 6 | |||
| 7 | . /etc/default/rcS | ||
| 8 | |||
| 9 | # | ||
| 10 | # Set SULOGIN in /etc/default/rcS to yes if you want a sulogin to be spawned | ||
| 11 | # from this script *before anything else* with a timeout, like SCO does. | ||
| 12 | # | ||
| 13 | test "$SULOGIN" = yes && sulogin -t 30 $CONSOLE | ||
| 14 | |||
| 15 | # | ||
| 16 | # Ensure that bdflush (update) is running before any major I/O is | ||
| 17 | # performed (the following fsck is a good example of such activity :). | ||
| 18 | # | ||
| 19 | test -x /sbin/update && update | ||
| 20 | |||
| 21 | # | ||
| 22 | # Read /etc/fstab. | ||
| 23 | # | ||
| 24 | exec 9>&0 </etc/fstab | ||
| 25 | rootmode=rw | ||
| 26 | rootopts=rw | ||
| 27 | test "$ENABLE_ROOTFS_FSCK" = yes && rootcheck="yes" || rootcheck="no" | ||
| 28 | swap_on_md=no | ||
| 29 | devfs= | ||
| 30 | while read fs mnt type opts dump pass junk | ||
| 31 | do | ||
| 32 | case "$fs" in | ||
| 33 | ""|\#*) | ||
| 34 | continue; | ||
| 35 | ;; | ||
| 36 | /dev/md*) | ||
| 37 | # Swap on md device. | ||
| 38 | test "$type" = swap && swap_on_md=yes | ||
| 39 | ;; | ||
| 40 | /dev/*) | ||
| 41 | ;; | ||
| 42 | *) | ||
| 43 | # Might be a swapfile. | ||
| 44 | test "$type" = swap && swap_on_md=yes | ||
| 45 | ;; | ||
| 46 | esac | ||
| 47 | |||
| 48 | test "$type" = devfs && devfs="$fs" | ||
| 49 | |||
| 50 | # Currently we do not care about the other entries | ||
| 51 | if test "$mnt" = "/" | ||
| 52 | then | ||
| 53 | #echo "[$fs] [$mnt] [$type] [$opts] [$dump] [$pass] [$junk]" | ||
| 54 | |||
| 55 | rootopts="$opts" | ||
| 56 | roottype="$type" | ||
| 57 | |||
| 58 | #The "spinner" is broken on busybox sh | ||
| 59 | TERM=dumb | ||
| 60 | |||
| 61 | test "$pass" = 0 -o "$pass" = "" && rootcheck=no | ||
| 62 | |||
| 63 | # Enable fsck for ext2 and ext3 rootfs, disable for everything else | ||
| 64 | case "$type" in | ||
| 65 | ext3) rootcheck=yes;; | ||
| 66 | *) rootcheck=no;; | ||
| 67 | esac | ||
| 68 | |||
| 69 | if test "$rootcheck" = yes | ||
| 70 | then | ||
| 71 | if ! test -x "/sbin/fsck.${roottype}" | ||
| 72 | then | ||
| 73 | echo -e "\n * * * WARNING: /sbin/fsck.${roottype} is missing! * * *\n" | ||
| 74 | rootcheck=no | ||
| 75 | fi | ||
| 76 | fi | ||
| 77 | |||
| 78 | case "$opts" in | ||
| 79 | ro|ro,*|*,ro|*,ro,*) | ||
| 80 | rootmode=ro | ||
| 81 | ;; | ||
| 82 | esac | ||
| 83 | fi | ||
| 84 | done | ||
| 85 | exec 0>&9 9>&- | ||
| 86 | |||
| 87 | # | ||
| 88 | # Activate the swap device(s) in /etc/fstab. This needs to be done | ||
| 89 | # before fsck, since fsck can be quite memory-hungry. | ||
| 90 | # | ||
| 91 | doswap=no | ||
| 92 | test -d /proc/1 || mount -n /proc | ||
| 93 | case "`uname -r`" in | ||
| 94 | 2.[0123].*) | ||
| 95 | if test $swap_on_md = yes && grep -qs resync /proc/mdstat | ||
| 96 | then | ||
| 97 | test "$VERBOSE" != no && echo "Not activating swap - RAID array resyncing" | ||
| 98 | else | ||
| 99 | doswap=yes | ||
| 100 | fi | ||
| 101 | ;; | ||
| 102 | *) | ||
| 103 | doswap=yes | ||
| 104 | ;; | ||
| 105 | esac | ||
| 106 | if test $doswap = yes | ||
| 107 | then | ||
| 108 | test "$VERBOSE" != no && echo "Activating swap" | ||
| 109 | swapon -a 2> /dev/null | ||
| 110 | fi | ||
| 111 | |||
| 112 | # | ||
| 113 | # Check the root filesystem. | ||
| 114 | # | ||
| 115 | if test -f /fastboot || test $rootcheck = no | ||
| 116 | then | ||
| 117 | test $rootcheck = yes && echo "Fast boot, no filesystem check" | ||
| 118 | else | ||
| 119 | # | ||
| 120 | # Ensure that root is quiescent and read-only before fsck'ing. | ||
| 121 | # | ||
| 122 | mount -n -o remount,ro / | ||
| 123 | if test $? = 0 | ||
| 124 | then | ||
| 125 | if test -f /forcefsck | ||
| 126 | then | ||
| 127 | force="-f" | ||
| 128 | else | ||
| 129 | force="" | ||
| 130 | fi | ||
| 131 | if test "$FSCKFIX" = yes | ||
| 132 | then | ||
| 133 | fix="-y" | ||
| 134 | else | ||
| 135 | fix="-a" | ||
| 136 | fi | ||
| 137 | spinner="-C" | ||
| 138 | case "$TERM" in | ||
| 139 | dumb|network|unknown|"") spinner="" ;; | ||
| 140 | esac | ||
| 141 | test `uname -m` = s390 && spinner="" # This should go away | ||
| 142 | test "$VERBOSE" != no && echo "Checking root filesystem..." | ||
| 143 | fsck $spinner $force $fix / | ||
| 144 | # | ||
| 145 | # If there was a failure, drop into single-user mode. | ||
| 146 | # | ||
| 147 | # NOTE: "failure" is defined as exiting with a return code of | ||
| 148 | # 2 or larger. A return code of 1 indicates that filesystem | ||
| 149 | # errors were corrected but that the boot may proceed. | ||
| 150 | # | ||
| 151 | if test "$?" -gt 1 | ||
| 152 | then | ||
| 153 | |||
| 154 | # Since this script is run very early in the boot-process, it should be safe to assume that the | ||
| 155 | # output is printed to VT1. However, some distributions use a bootsplash to hide the "ugly" boot | ||
| 156 | # messages and having the bootsplash "hang" due to a waiting fsck prompt is less than ideal | ||
| 157 | chvt 1 | ||
| 158 | |||
| 159 | # Surprise! Re-directing from a HERE document (as in | ||
| 160 | # "cat << EOF") won't work, because the root is read-only. | ||
| 161 | echo | ||
| 162 | echo "fsck failed. Please repair manually and reboot. Please note" | ||
| 163 | echo "that the root filesystem is currently mounted read-only. To" | ||
| 164 | echo "remount it read-write:" | ||
| 165 | echo | ||
| 166 | echo " # mount -n -o remount,rw /" | ||
| 167 | echo | ||
| 168 | echo "CONTROL-D will exit from this shell and REBOOT the system." | ||
| 169 | echo | ||
| 170 | # Start a single user shell on the console | ||
| 171 | /sbin/sulogin $CONSOLE | ||
| 172 | reboot -f | ||
| 173 | fi | ||
| 174 | else | ||
| 175 | echo "*** ERROR! Cannot fsck root fs because it is not mounted read-only!" | ||
| 176 | echo | ||
| 177 | fi | ||
| 178 | fi | ||
| 179 | |||
| 180 | # | ||
| 181 | # If the root filesystem was not marked as read-only in /etc/fstab, | ||
| 182 | # remount the rootfs rw but do not try to change mtab because it | ||
| 183 | # is on a ro fs until the remount succeeded. Then clean up old mtabs | ||
| 184 | # and finally write the new mtab. | ||
| 185 | # This part is only needed if the rootfs was mounted ro. | ||
| 186 | # | ||
| 187 | if [ $(grep rootfs /proc/mounts | awk '{print $4}') = rw ]; then | ||
| 188 | exit 0 | ||
| 189 | fi | ||
| 190 | |||
| 191 | # Add a second check, which seems to be needed for some kernel versions | ||
| 192 | if [ $(grep "/dev/root" /proc/mounts | awk '{print $4}') = rw ]; then | ||
| 193 | exit 0 | ||
| 194 | fi | ||
| 195 | |||
| 196 | |||
| 197 | echo "Remounting root file system..." | ||
| 198 | mount -n -o remount,$rootmode / | ||
| 199 | if test "$rootmode" = rw | ||
| 200 | then | ||
| 201 | if test ! -L /etc/mtab | ||
| 202 | then | ||
| 203 | rm -f /etc/mtab~ /etc/nologin | ||
| 204 | : > /etc/mtab | ||
| 205 | fi | ||
| 206 | mount -f -o remount / | ||
| 207 | mount -f /proc | ||
| 208 | test "$devfs" && grep -q '^devfs /dev' /proc/mounts && mount -f "$devfs" | ||
| 209 | fi | ||
| 210 | |||
| 211 | : exit 0 | ||
diff --git a/meta/packages/initscripts/initscripts-1.0/jornada7xx/checkroot.sh b/meta/packages/initscripts/initscripts-1.0/jornada7xx/checkroot.sh deleted file mode 100755 index 9e2d3cfc85..0000000000 --- a/meta/packages/initscripts/initscripts-1.0/jornada7xx/checkroot.sh +++ /dev/null | |||
| @@ -1,211 +0,0 @@ | |||
| 1 | # | ||
| 2 | # checkroot.sh Check to root filesystem. | ||
| 3 | # | ||
| 4 | # Version: @(#)checkroot.sh 2.84 25-Jan-2002 miquels@cistron.nl | ||
| 5 | # | ||
| 6 | |||
| 7 | . /etc/default/rcS | ||
| 8 | |||
| 9 | # | ||
| 10 | # Set SULOGIN in /etc/default/rcS to yes if you want a sulogin to be spawned | ||
| 11 | # from this script *before anything else* with a timeout, like SCO does. | ||
| 12 | # | ||
| 13 | test "$SULOGIN" = yes && sulogin -t 30 $CONSOLE | ||
| 14 | |||
| 15 | # | ||
| 16 | # Ensure that bdflush (update) is running before any major I/O is | ||
| 17 | # performed (the following fsck is a good example of such activity :). | ||
| 18 | # | ||
| 19 | test -x /sbin/update && update | ||
| 20 | |||
| 21 | # | ||
| 22 | # Read /etc/fstab. | ||
| 23 | # | ||
| 24 | exec 9>&0 </etc/fstab | ||
| 25 | rootmode=rw | ||
| 26 | rootopts=rw | ||
| 27 | test "$ENABLE_ROOTFS_FSCK" = yes && rootcheck="yes" || rootcheck="no" | ||
| 28 | swap_on_md=no | ||
| 29 | devfs= | ||
| 30 | while read fs mnt type opts dump pass junk | ||
| 31 | do | ||
| 32 | case "$fs" in | ||
| 33 | ""|\#*) | ||
| 34 | continue; | ||
| 35 | ;; | ||
| 36 | /dev/md*) | ||
| 37 | # Swap on md device. | ||
| 38 | test "$type" = swap && swap_on_md=yes | ||
| 39 | ;; | ||
| 40 | /dev/*) | ||
| 41 | ;; | ||
| 42 | *) | ||
| 43 | # Might be a swapfile. | ||
| 44 | test "$type" = swap && swap_on_md=yes | ||
| 45 | ;; | ||
| 46 | esac | ||
| 47 | |||
| 48 | test "$type" = devfs && devfs="$fs" | ||
| 49 | |||
| 50 | # Currently we do not care about the other entries | ||
| 51 | if test "$mnt" = "/" | ||
| 52 | then | ||
| 53 | #echo "[$fs] [$mnt] [$type] [$opts] [$dump] [$pass] [$junk]" | ||
| 54 | |||
| 55 | rootopts="$opts" | ||
| 56 | roottype="$type" | ||
| 57 | |||
| 58 | #The "spinner" is broken on busybox sh | ||
| 59 | TERM=dumb | ||
| 60 | |||
| 61 | test "$pass" = 0 -o "$pass" = "" && rootcheck=no | ||
| 62 | |||
| 63 | # Enable fsck for ext2 and ext3 rootfs, disable for everything else | ||
| 64 | case "$type" in | ||
| 65 | ext3) rootcheck=yes;; | ||
| 66 | *) rootcheck=no;; | ||
| 67 | esac | ||
| 68 | |||
| 69 | if test "$rootcheck" = yes | ||
| 70 | then | ||
| 71 | if ! test -x "/sbin/fsck.${roottype}" | ||
| 72 | then | ||
| 73 | echo -e "\n * * * WARNING: /sbin/fsck.${roottype} is missing! * * *\n" | ||
| 74 | rootcheck=no | ||
| 75 | fi | ||
| 76 | fi | ||
| 77 | |||
| 78 | case "$opts" in | ||
| 79 | ro|ro,*|*,ro|*,ro,*) | ||
| 80 | rootmode=ro | ||
| 81 | ;; | ||
| 82 | esac | ||
| 83 | fi | ||
| 84 | done | ||
| 85 | exec 0>&9 9>&- | ||
| 86 | |||
| 87 | # | ||
| 88 | # Activate the swap device(s) in /etc/fstab. This needs to be done | ||
| 89 | # before fsck, since fsck can be quite memory-hungry. | ||
| 90 | # | ||
| 91 | doswap=no | ||
| 92 | test -d /proc/1 || mount -n /proc | ||
| 93 | case "`uname -r`" in | ||
| 94 | 2.[0123].*) | ||
| 95 | if test $swap_on_md = yes && grep -qs resync /proc/mdstat | ||
| 96 | then | ||
| 97 | test "$VERBOSE" != no && echo "Not activating swap - RAID array resyncing" | ||
| 98 | else | ||
| 99 | doswap=yes | ||
| 100 | fi | ||
| 101 | ;; | ||
| 102 | *) | ||
| 103 | doswap=yes | ||
| 104 | ;; | ||
| 105 | esac | ||
| 106 | if test $doswap = yes | ||
| 107 | then | ||
| 108 | test "$VERBOSE" != no && echo "Activating swap" | ||
| 109 | swapon -a 2> /dev/null | ||
| 110 | fi | ||
| 111 | |||
| 112 | # | ||
| 113 | # Check the root filesystem. | ||
| 114 | # | ||
| 115 | if test -f /fastboot || test $rootcheck = no | ||
| 116 | then | ||
| 117 | test $rootcheck = yes && echo "Fast boot, no filesystem check" | ||
| 118 | else | ||
| 119 | # | ||
| 120 | # Ensure that root is quiescent and read-only before fsck'ing. | ||
| 121 | # | ||
| 122 | mount -n -o remount,ro / | ||
| 123 | if test $? = 0 | ||
| 124 | then | ||
| 125 | if test -f /forcefsck | ||
| 126 | then | ||
| 127 | force="-f" | ||
| 128 | else | ||
| 129 | force="" | ||
| 130 | fi | ||
| 131 | if test "$FSCKFIX" = yes | ||
| 132 | then | ||
| 133 | fix="-y" | ||
| 134 | else | ||
| 135 | fix="-a" | ||
| 136 | fi | ||
| 137 | spinner="-C" | ||
| 138 | case "$TERM" in | ||
| 139 | dumb|network|unknown|"") spinner="" ;; | ||
| 140 | esac | ||
| 141 | test `uname -m` = s390 && spinner="" # This should go away | ||
| 142 | test "$VERBOSE" != no && echo "Checking root filesystem..." | ||
| 143 | fsck $spinner $force $fix / | ||
| 144 | # | ||
| 145 | # If there was a failure, drop into single-user mode. | ||
| 146 | # | ||
| 147 | # NOTE: "failure" is defined as exiting with a return code of | ||
| 148 | # 2 or larger. A return code of 1 indicates that filesystem | ||
| 149 | # errors were corrected but that the boot may proceed. | ||
| 150 | # | ||
| 151 | if test "$?" -gt 1 | ||
| 152 | then | ||
| 153 | |||
| 154 | # Since this script is run very early in the boot-process, it should be safe to assume that the | ||
| 155 | # output is printed to VT1. However, some distributions use a bootsplash to hide the "ugly" boot | ||
| 156 | # messages and having the bootsplash "hang" due to a waiting fsck prompt is less than ideal | ||
| 157 | chvt 1 | ||
| 158 | |||
| 159 | # Surprise! Re-directing from a HERE document (as in | ||
| 160 | # "cat << EOF") won't work, because the root is read-only. | ||
| 161 | echo | ||
| 162 | echo "fsck failed. Please repair manually and reboot. Please note" | ||
| 163 | echo "that the root filesystem is currently mounted read-only. To" | ||
| 164 | echo "remount it read-write:" | ||
| 165 | echo | ||
| 166 | echo " # mount -n -o remount,rw /" | ||
| 167 | echo | ||
| 168 | echo "CONTROL-D will exit from this shell and REBOOT the system." | ||
| 169 | echo | ||
| 170 | # Start a single user shell on the console | ||
| 171 | /sbin/sulogin $CONSOLE | ||
| 172 | reboot -f | ||
| 173 | fi | ||
| 174 | else | ||
| 175 | echo "*** ERROR! Cannot fsck root fs because it is not mounted read-only!" | ||
| 176 | echo | ||
| 177 | fi | ||
| 178 | fi | ||
| 179 | |||
| 180 | # | ||
| 181 | # If the root filesystem was not marked as read-only in /etc/fstab, | ||
| 182 | # remount the rootfs rw but do not try to change mtab because it | ||
| 183 | # is on a ro fs until the remount succeeded. Then clean up old mtabs | ||
| 184 | # and finally write the new mtab. | ||
| 185 | # This part is only needed if the rootfs was mounted ro. | ||
| 186 | # | ||
| 187 | if [ $(grep rootfs /proc/mounts | awk '{print $4}') = rw ]; then | ||
| 188 | exit 0 | ||
| 189 | fi | ||
| 190 | |||
| 191 | # Add a second check, which seems to be needed for some kernel versions | ||
| 192 | if [ $(grep "/dev/root" /proc/mounts | awk '{print $4}') = rw ]; then | ||
| 193 | exit 0 | ||
| 194 | fi | ||
| 195 | |||
| 196 | |||
| 197 | echo "Remounting root file system..." | ||
| 198 | mount -n -o remount,$rootmode / | ||
| 199 | if test "$rootmode" = rw | ||
| 200 | then | ||
| 201 | if test ! -L /etc/mtab | ||
| 202 | then | ||
| 203 | rm -f /etc/mtab~ /etc/nologin | ||
| 204 | : > /etc/mtab | ||
| 205 | fi | ||
| 206 | mount -f -o remount / | ||
| 207 | mount -f /proc | ||
| 208 | test "$devfs" && grep -q '^devfs /dev' /proc/mounts && mount -f "$devfs" | ||
| 209 | fi | ||
| 210 | |||
| 211 | : exit 0 | ||
diff --git a/meta/packages/initscripts/initscripts-1.0/mountall.sh b/meta/packages/initscripts/initscripts-1.0/mountall.sh deleted file mode 100755 index 9d4f97b683..0000000000 --- a/meta/packages/initscripts/initscripts-1.0/mountall.sh +++ /dev/null | |||
| @@ -1,38 +0,0 @@ | |||
| 1 | ### BEGIN INIT INFO | ||
| 2 | # Provides: mountall | ||
| 3 | # Required-Start: mountvirtfs | ||
| 4 | # Required-Stop: | ||
| 5 | # Default-Start: S | ||
| 6 | # Default-Stop: | ||
| 7 | # Short-Description: Mount all filesystems. | ||
| 8 | # Description: | ||
| 9 | ### END INIT INFO | ||
| 10 | |||
| 11 | . /etc/default/rcS | ||
| 12 | |||
| 13 | # | ||
| 14 | # Mount local filesystems in /etc/fstab. For some reason, people | ||
| 15 | # might want to mount "proc" several times, and mount -v complains | ||
| 16 | # about this. So we mount "proc" filesystems without -v. | ||
| 17 | # | ||
| 18 | test "$VERBOSE" != no && echo "Mounting local filesystems..." | ||
| 19 | mount -at nonfs,nosmbfs,noncpfs 2>/dev/null | ||
| 20 | |||
| 21 | # | ||
| 22 | # We might have mounted something over /dev, see if /dev/initctl is there. | ||
| 23 | # | ||
| 24 | if test ! -p /dev/initctl | ||
| 25 | then | ||
| 26 | rm -f /dev/initctl | ||
| 27 | mknod -m 600 /dev/initctl p | ||
| 28 | fi | ||
| 29 | kill -USR1 1 | ||
| 30 | |||
| 31 | # | ||
| 32 | # Execute swapon command again, in case we want to swap to | ||
| 33 | # a file on a now mounted filesystem. | ||
| 34 | # | ||
| 35 | swapon -a 2> /dev/null | ||
| 36 | |||
| 37 | : exit 0 | ||
| 38 | |||
diff --git a/meta/packages/initscripts/initscripts-1.0/mountnfs.sh b/meta/packages/initscripts/initscripts-1.0/mountnfs.sh deleted file mode 100755 index 46c58b16a8..0000000000 --- a/meta/packages/initscripts/initscripts-1.0/mountnfs.sh +++ /dev/null | |||
| @@ -1,83 +0,0 @@ | |||
| 1 | ### BEGIN INIT INFO | ||
| 2 | # Provides: mountnfs | ||
| 3 | # Required-Start: $local_fs $network $portmap | ||
| 4 | # Required-Stop: | ||
| 5 | # Default-Start: S | ||
| 6 | # Default-Stop: | ||
| 7 | ### END INIT INFO | ||
| 8 | |||
| 9 | . /etc/default/rcS | ||
| 10 | |||
| 11 | # | ||
| 12 | # Run in a subshell because of I/O redirection. | ||
| 13 | # | ||
| 14 | test -f /etc/fstab && ( | ||
| 15 | |||
| 16 | # | ||
| 17 | # Read through fstab line by line. If it is NFS, set the flag | ||
| 18 | # for mounting NFS filesystems. If any NFS partition is found and it | ||
| 19 | # not mounted with the nolock option, we start the portmapper. | ||
| 20 | # | ||
| 21 | portmap=no | ||
| 22 | mount_nfs=no | ||
| 23 | mount_smb=no | ||
| 24 | mount_ncp=no | ||
| 25 | while read device mountpt fstype options | ||
| 26 | do | ||
| 27 | case "$device" in | ||
| 28 | ""|\#*) | ||
| 29 | continue | ||
| 30 | ;; | ||
| 31 | esac | ||
| 32 | |||
| 33 | case "$options" in | ||
| 34 | *noauto*) | ||
| 35 | continue | ||
| 36 | ;; | ||
| 37 | esac | ||
| 38 | |||
| 39 | if test "$fstype" = nfs | ||
| 40 | then | ||
| 41 | mount_nfs=yes | ||
| 42 | case "$options" in | ||
| 43 | *nolock*) | ||
| 44 | ;; | ||
| 45 | *) | ||
| 46 | portmap=yes | ||
| 47 | ;; | ||
| 48 | esac | ||
| 49 | fi | ||
| 50 | if test "$fstype" = smbfs | ||
| 51 | then | ||
| 52 | mount_smb=yes | ||
| 53 | fi | ||
| 54 | if test "$fstype" = ncpfs | ||
| 55 | then | ||
| 56 | mount_ncp=yes | ||
| 57 | fi | ||
| 58 | done | ||
| 59 | |||
| 60 | exec 0>&1 | ||
| 61 | |||
| 62 | if test "$portmap" = yes | ||
| 63 | then | ||
| 64 | if test -x /sbin/portmap | ||
| 65 | then | ||
| 66 | echo -n "Starting portmapper... " | ||
| 67 | start-stop-daemon --start --quiet --exec /sbin/portmap | ||
| 68 | sleep 2 | ||
| 69 | fi | ||
| 70 | fi | ||
| 71 | |||
| 72 | if test "$mount_nfs" = yes || test "$mount_smb" = yes || test "$mount_ncp" = yes | ||
| 73 | then | ||
| 74 | echo "Mounting remote filesystems..." | ||
| 75 | test "$mount_nfs" = yes && mount -a -t nfs | ||
| 76 | test "$mount_smb" = yes && mount -a -t smbfs | ||
| 77 | test "$mount_ncp" = yes && mount -a -t ncpfs | ||
| 78 | fi | ||
| 79 | |||
| 80 | ) < /etc/fstab | ||
| 81 | |||
| 82 | : exit 0 | ||
| 83 | |||
diff --git a/meta/packages/initscripts/initscripts-1.0/om-gta01/inittab b/meta/packages/initscripts/initscripts-1.0/om-gta01/inittab deleted file mode 100644 index 8d313b2a58..0000000000 --- a/meta/packages/initscripts/initscripts-1.0/om-gta01/inittab +++ /dev/null | |||
| @@ -1,48 +0,0 @@ | |||
| 1 | # /etc/inittab: init(8) configuration. | ||
| 2 | # $Id: inittab,v 1.91 2002/01/25 13:35:21 miquels Exp $ | ||
| 3 | |||
| 4 | # The default runlevel. | ||
| 5 | id:5:initdefault: | ||
| 6 | |||
| 7 | # Boot-time system configuration/initialization script. | ||
| 8 | # This is run first except when booting in emergency (-b) mode. | ||
| 9 | si::sysinit:/etc/init.d/rcS | ||
| 10 | |||
| 11 | # What to do in single-user mode. | ||
| 12 | ~~:S:wait:/sbin/sulogin | ||
| 13 | |||
| 14 | # Shut down if kernel sends us SIGINT or SIGPWR | ||
| 15 | ca::ctrlaltdel:/sbin/halt -p | ||
| 16 | pf::powerfailnow:/sbin/halt -p | ||
| 17 | |||
| 18 | # /etc/init.d executes the S and K scripts upon change | ||
| 19 | # of runlevel. | ||
| 20 | # | ||
| 21 | # Runlevel 0 is halt. | ||
| 22 | # Runlevel 1 is single-user. | ||
| 23 | # Runlevels 2-5 are multi-user. | ||
| 24 | # Runlevel 6 is reboot. | ||
| 25 | |||
| 26 | l0:0:wait:/etc/init.d/rc 0 | ||
| 27 | l1:1:wait:/etc/init.d/rc 1 | ||
| 28 | l2:2:wait:/etc/init.d/rc 2 | ||
| 29 | l3:3:wait:/etc/init.d/rc 3 | ||
| 30 | l4:4:wait:/etc/init.d/rc 4 | ||
| 31 | l5:5:wait:/etc/init.d/rc 5 | ||
| 32 | l6:6:wait:/etc/init.d/rc 6 | ||
| 33 | # Normally not reached, but fallthrough in case of emergency. | ||
| 34 | z6:6:respawn:/sbin/sulogin | ||
| 35 | |||
| 36 | # /sbin/getty invocations for the runlevels. | ||
| 37 | # | ||
| 38 | # The "id" field MUST be the same as the last | ||
| 39 | # characters of the device (after "tty"). | ||
| 40 | # | ||
| 41 | # Format: | ||
| 42 | # <id>:<runlevels>:<action>:<process> | ||
| 43 | |||
| 44 | # NOTE: FIC GTA01 has this odd multiplexer on ttySAC0 since | ||
| 45 | # GSM shares it with the serial output. We only allow | ||
| 46 | # the getty in runlevel 2 to cope with that. gsmd gets | ||
| 47 | # started in runlevel 3. -- mickey@openmoko.org | ||
| 48 | S:2:respawn:/sbin/getty 115200 ttySAC0 | ||
diff --git a/meta/packages/initscripts/initscripts-1.0/openmn/extractfs b/meta/packages/initscripts/initscripts-1.0/openmn/extractfs deleted file mode 100755 index 7e57dedd2d..0000000000 --- a/meta/packages/initscripts/initscripts-1.0/openmn/extractfs +++ /dev/null | |||
| @@ -1,7 +0,0 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | if (grep -q 'tmpfs.*/var.*tmpfs' /proc/mounts) | ||
| 4 | then | ||
| 5 | test "$VERBOSE" != no && echo "Copying /var filesystem..." | ||
| 6 | cp -a /boot/var / | ||
| 7 | fi | ||
diff --git a/meta/packages/initscripts/initscripts-1.0/openmn/packages b/meta/packages/initscripts/initscripts-1.0/openmn/packages deleted file mode 100755 index 2566487d2d..0000000000 --- a/meta/packages/initscripts/initscripts-1.0/openmn/packages +++ /dev/null | |||
| @@ -1,63 +0,0 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | # Original author: ??? | ||
| 3 | # | ||
| 4 | # Additions by Steph Meslin-Weber: | ||
| 5 | # x Percentage display | ||
| 6 | # x Dot display of dependency installations | ||
| 7 | # - removed both of above | ||
| 8 | # - display is now X of Y packages and current package name being installed | ||
| 9 | |||
| 10 | #. /etc/default/rcS | ||
| 11 | |||
| 12 | reconfigure () { | ||
| 13 | pkg=$1 | ||
| 14 | path=$2 | ||
| 15 | isdependent=$3 | ||
| 16 | test -e "$path/info/$pkg.control" || return 1 | ||
| 17 | depends="`cat $path/info/$pkg.control|grep Depends|cut -d: -f2`" | ||
| 18 | |||
| 19 | # make sure we haven't already installed this package | ||
| 20 | isthere=`cat /tmp/.configured.list|grep $pkg` | ||
| 21 | if test "$isthere" != ""; then | ||
| 22 | return 1 | ||
| 23 | fi | ||
| 24 | |||
| 25 | if test "$depends" != ""; then | ||
| 26 | for dep in $depends; do | ||
| 27 | (echo $log|grep $dep >/dev/null 2>&1) || ( reconfigure $dep $path "$max" "$pkg" && log="$log $dep"; ) | ||
| 28 | done | ||
| 29 | fi | ||
| 30 | |||
| 31 | echo -ne " ${pkg}" | ||
| 32 | |||
| 33 | test -e "$path/info/$pkg.prerm" && $path/info/$pkg.prerm unconfigure >/dev/null 2>&1 | ||
| 34 | test -e "$path/info/$pkg.postinst" && $path/info/$pkg.postinst configure >/dev/null 2>&1 | ||
| 35 | |||
| 36 | log="$log $pkg" | ||
| 37 | |||
| 38 | # append the installed package name to the list | ||
| 39 | echo -ne "$pkg\n" >> /tmp/.configured.list | ||
| 40 | |||
| 41 | echo | ||
| 42 | return 0 | ||
| 43 | } | ||
| 44 | |||
| 45 | if test ! -e /etc/.configured; then | ||
| 46 | echo "Reconfiguring all packages installed to root:" | ||
| 47 | |||
| 48 | # create unique packages list file | ||
| 49 | rm -f /tmp/.configured.list | ||
| 50 | touch /tmp/.configured.list | ||
| 51 | |||
| 52 | log="" | ||
| 53 | |||
| 54 | for control in /usr/lib/ipkg/info/*.control; do | ||
| 55 | package=`echo $control|sed -e 's,.*/,,g; s,\.control,,g;'` | ||
| 56 | (echo $log|grep $package >/dev/null 2>&1) || reconfigure $package /usr/lib/ipkg | ||
| 57 | done | ||
| 58 | |||
| 59 | # cleanup unique packages list file | ||
| 60 | rm -f /tmp/.configured.list | ||
| 61 | fi | ||
| 62 | |||
| 63 | test -f /usr/lib/ipkg/info/task-ramses || ipkg install task-ramses | ||
diff --git a/meta/packages/initscripts/initscripts-1.0/openmn/umountfs b/meta/packages/initscripts/initscripts-1.0/openmn/umountfs deleted file mode 100755 index 399194109b..0000000000 --- a/meta/packages/initscripts/initscripts-1.0/openmn/umountfs +++ /dev/null | |||
| @@ -1,17 +0,0 @@ | |||
| 1 | #! /bin/sh | ||
| 2 | # | ||
| 3 | # umountfs Turn off swap and unmount all local filesystems. | ||
| 4 | # | ||
| 5 | |||
| 6 | PATH=/sbin:/bin:/usr/sbin:/usr/bin | ||
| 7 | |||
| 8 | echo "Deactivating swap..." | ||
| 9 | swapoff -a | ||
| 10 | |||
| 11 | # We leave /proc mounted. | ||
| 12 | echo "Unmounting local filesystems..." | ||
| 13 | umount -f -a -r | ||
| 14 | |||
| 15 | mount -o remount,ro / | ||
| 16 | |||
| 17 | : exit 0 | ||
diff --git a/meta/packages/initscripts/initscripts-1.0/populate-volatile.sh b/meta/packages/initscripts/initscripts-1.0/populate-volatile.sh deleted file mode 100755 index 1813fd1240..0000000000 --- a/meta/packages/initscripts/initscripts-1.0/populate-volatile.sh +++ /dev/null | |||
| @@ -1,197 +0,0 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | ### BEGIN INIT INFO | ||
| 3 | # Provides: volatile | ||
| 4 | # Required-Start: $local_fs | ||
| 5 | # Required-Stop: $local_fs | ||
| 6 | # Default-Start: S | ||
| 7 | # Default-Stop: | ||
| 8 | # Short-Description: Populate the volatile filesystem | ||
| 9 | ### END INIT INFO | ||
| 10 | |||
| 11 | . /etc/default/rcS | ||
| 12 | |||
| 13 | CFGDIR="/etc/default/volatiles" | ||
| 14 | TMPROOT="/var/tmp" | ||
| 15 | COREDEF="00_core" | ||
| 16 | |||
| 17 | [ "${VERBOSE}" != "no" ] && echo "Populating volatile Filesystems." | ||
| 18 | |||
| 19 | create_file() { | ||
| 20 | EXEC=" | ||
| 21 | touch \"$1\"; | ||
| 22 | chown ${TUSER}.${TGROUP} $1 || echo \"Failed to set owner -${TUSER}- for -$1-.\" >/dev/tty0 2>&1; | ||
| 23 | chmod ${TMODE} $1 || echo \"Failed to set mode -${TMODE}- for -$1-.\" >/dev/tty0 2>&1 " | ||
| 24 | |||
| 25 | test "$VOLATILE_ENABLE_CACHE" = yes && echo "$EXEC" >> /etc/volatile.cache | ||
| 26 | |||
| 27 | [ -e "$1" ] && { | ||
| 28 | [ "${VERBOSE}" != "no" ] && echo "Target already exists. Skipping." | ||
| 29 | } || { | ||
| 30 | eval $EXEC & | ||
| 31 | } | ||
| 32 | } | ||
| 33 | |||
| 34 | mk_dir() { | ||
| 35 | EXEC=" | ||
| 36 | mkdir -p \"$1\"; | ||
| 37 | chown ${TUSER}.${TGROUP} $1 || echo \"Failed to set owner -${TUSER}- for -$1-.\" >/dev/tty0 2>&1; | ||
| 38 | chmod ${TMODE} $1 || echo \"Failed to set mode -${TMODE}- for -$1-.\" >/dev/tty0 2>&1 " | ||
| 39 | |||
| 40 | test "$VOLATILE_ENABLE_CACHE" = yes && echo "$EXEC" >> /etc/volatile.cache | ||
| 41 | |||
| 42 | [ -e "$1" ] && { | ||
| 43 | [ "${VERBOSE}" != "no" ] && echo "Target already exists. Skipping." | ||
| 44 | } || { | ||
| 45 | eval $EXEC & | ||
| 46 | } | ||
| 47 | } | ||
| 48 | |||
| 49 | link_file() { | ||
| 50 | EXEC="test -e \"$2\" -o -L $2 || ln -s \"$1\" \"$2\" >/dev/tty0 2>&1" | ||
| 51 | |||
| 52 | test "$VOLATILE_ENABLE_CACHE" = yes && echo " $EXEC" >> /etc/volatile.cache | ||
| 53 | |||
| 54 | [ -e "$2" ] && { | ||
| 55 | echo "Cannot create link over existing -${TNAME}-." >&2 | ||
| 56 | } || { | ||
| 57 | eval $EXEC & | ||
| 58 | } | ||
| 59 | } | ||
| 60 | |||
| 61 | check_requirements() { | ||
| 62 | |||
| 63 | cleanup() { | ||
| 64 | rm "${TMP_INTERMED}" | ||
| 65 | rm "${TMP_DEFINED}" | ||
| 66 | rm "${TMP_COMBINED}" | ||
| 67 | } | ||
| 68 | |||
| 69 | CFGFILE="$1" | ||
| 70 | |||
| 71 | [ `basename "${CFGFILE}"` = "${COREDEF}" ] && return 0 | ||
| 72 | |||
| 73 | TMP_INTERMED="${TMPROOT}/tmp.$$" | ||
| 74 | TMP_DEFINED="${TMPROOT}/tmpdefined.$$" | ||
| 75 | TMP_COMBINED="${TMPROOT}/tmpcombined.$$" | ||
| 76 | |||
| 77 | |||
| 78 | cat /etc/passwd | sed 's@\(^:\)*:.*@\1@' | sort | uniq > "${TMP_DEFINED}" | ||
| 79 | cat ${CFGFILE} | grep -v "^#" | cut -d " " -f 2 > "${TMP_INTERMED}" | ||
| 80 | cat "${TMP_DEFINED}" "${TMP_INTERMED}" | sort | uniq > "${TMP_COMBINED}" | ||
| 81 | |||
| 82 | NR_DEFINED_USERS="`cat "${TMP_DEFINED}" | wc -l`" | ||
| 83 | NR_COMBINED_USERS="`cat "${TMP_COMBINED}" | wc -l`" | ||
| 84 | |||
| 85 | [ "${NR_DEFINED_USERS}" -ne "${NR_COMBINED_USERS}" ] && { | ||
| 86 | echo "Undefined users:" | ||
| 87 | diff "${TMP_DEFINED}" "${TMP_COMBINED}" | grep "^>" | ||
| 88 | cleanup | ||
| 89 | return 1 | ||
| 90 | } | ||
| 91 | |||
| 92 | |||
| 93 | cat /etc/group | sed 's@\(^:\)*:.*@\1@' | sort | uniq > "${TMP_DEFINED}" | ||
| 94 | cat ${CFGFILE} | grep -v "^#" | cut -d " " -f 3 > "${TMP_INTERMED}" | ||
| 95 | cat "${TMP_DEFINED}" "${TMP_INTERMED}" | sort | uniq > "${TMP_COMBINED}" | ||
| 96 | |||
| 97 | NR_DEFINED_GROUPS="`cat "${TMP_DEFINED}" | wc -l`" | ||
| 98 | NR_COMBINED_GROUPS="`cat "${TMP_COMBINED}" | wc -l`" | ||
| 99 | |||
| 100 | [ "${NR_DEFINED_GROUPS}" -ne "${NR_COMBINED_GROUPS}" ] && { | ||
| 101 | echo "Undefined groups:" | ||
| 102 | diff "${TMP_DEFINED}" "${TMP_COMBINED}" | grep "^>" | ||
| 103 | cleanup | ||
| 104 | return 1 | ||
| 105 | } | ||
| 106 | |||
| 107 | # Add checks for required directories here | ||
| 108 | |||
| 109 | cleanup | ||
| 110 | return 0 | ||
| 111 | } | ||
| 112 | |||
| 113 | apply_cfgfile() { | ||
| 114 | |||
| 115 | CFGFILE="$1" | ||
| 116 | |||
| 117 | check_requirements "${CFGFILE}" || { | ||
| 118 | echo "Skipping ${CFGFILE}" | ||
| 119 | return 1 | ||
| 120 | } | ||
| 121 | |||
| 122 | cat ${CFGFILE} | grep -v "^#" | \ | ||
| 123 | while read LINE; do | ||
| 124 | |||
| 125 | eval `echo "$LINE" | sed -n "s/\(.*\)\ \(.*\) \(.*\)\ \(.*\)\ \(.*\)\ \(.*\)/TTYPE=\1 ; TUSER=\2; TGROUP=\3; TMODE=\4; TNAME=\5 TLTARGET=\6/p"` | ||
| 126 | |||
| 127 | [ "${VERBOSE}" != "no" ] && echo "Checking for -${TNAME}-." | ||
| 128 | |||
| 129 | |||
| 130 | [ "${TTYPE}" = "l" ] && { | ||
| 131 | TSOURCE="$TLTARGET" | ||
| 132 | [ -L "${TNAME}" ] || { | ||
| 133 | [ "${VERBOSE}" != "no" ] && echo "Creating link -${TNAME}- pointing to -${TSOURCE}-." | ||
| 134 | link_file "${TSOURCE}" "${TNAME}" & | ||
| 135 | } | ||
| 136 | continue | ||
| 137 | } | ||
| 138 | |||
| 139 | [ -L "${TNAME}" ] && { | ||
| 140 | [ "${VERBOSE}" != "no" ] && echo "Found link." | ||
| 141 | NEWNAME=`ls -l "${TNAME}" | sed -e 's/^.*-> \(.*\)$/\1/'` | ||
| 142 | echo ${NEWNAME} | grep -v "^/" >/dev/null && { | ||
| 143 | TNAME="`echo ${TNAME} | sed -e 's@\(.*\)/.*@\1@'`/${NEWNAME}" | ||
| 144 | [ "${VERBOSE}" != "no" ] && echo "Converted relative linktarget to absolute path -${TNAME}-." | ||
| 145 | } || { | ||
| 146 | TNAME="${NEWNAME}" | ||
| 147 | [ "${VERBOSE}" != "no" ] && echo "Using absolute link target -${TNAME}-." | ||
| 148 | } | ||
| 149 | } | ||
| 150 | |||
| 151 | case "${TTYPE}" in | ||
| 152 | "f") [ "${VERBOSE}" != "no" ] && echo "Creating file -${TNAME}-." | ||
| 153 | create_file "${TNAME}" & | ||
| 154 | ;; | ||
| 155 | "d") [ "${VERBOSE}" != "no" ] && echo "Creating directory -${TNAME}-." | ||
| 156 | mk_dir "${TNAME}" & | ||
| 157 | # Add check to see if there's an entry in fstab to mount. | ||
| 158 | ;; | ||
| 159 | *) [ "${VERBOSE}" != "no" ] && echo "Invalid type -${TTYPE}-." | ||
| 160 | continue | ||
| 161 | ;; | ||
| 162 | esac | ||
| 163 | |||
| 164 | |||
| 165 | done | ||
| 166 | |||
| 167 | return 0 | ||
| 168 | |||
| 169 | } | ||
| 170 | |||
| 171 | clearcache=0 | ||
| 172 | exec 9</proc/cmdline | ||
| 173 | while read line <&9 | ||
| 174 | do | ||
| 175 | case "$line" in | ||
| 176 | *clearcache*) clearcache=1 | ||
| 177 | ;; | ||
| 178 | *) continue | ||
| 179 | ;; | ||
| 180 | esac | ||
| 181 | done | ||
| 182 | exec 9>&- | ||
| 183 | |||
| 184 | if test -e /etc/volatile.cache -a "$VOLATILE_ENABLE_CACHE" = "yes" -a "x$1" != "xupdate" -a "x$clearcache" = "x0" | ||
| 185 | then | ||
| 186 | sh /etc/volatile.cache | ||
| 187 | else | ||
| 188 | rm -f /etc/volatile.cache | ||
| 189 | for file in `ls -1 "${CFGDIR}" | sort`; do | ||
| 190 | apply_cfgfile "${CFGDIR}/${file}" | ||
| 191 | done | ||
| 192 | fi | ||
| 193 | |||
| 194 | if test -f /etc/ld.so.cache -a ! -f /var/run/ld.so.cache | ||
| 195 | then | ||
| 196 | ln -s /etc/ld.so.cache /var/run/ld.so.cache | ||
| 197 | fi | ||
diff --git a/meta/packages/initscripts/initscripts-1.0/reboot b/meta/packages/initscripts/initscripts-1.0/reboot deleted file mode 100755 index 4c55885aba..0000000000 --- a/meta/packages/initscripts/initscripts-1.0/reboot +++ /dev/null | |||
| @@ -1,15 +0,0 @@ | |||
| 1 | #! /bin/sh | ||
| 2 | ### BEGIN INIT INFO | ||
| 3 | # Provides: reboot | ||
| 4 | # Required-Start: | ||
| 5 | # Required-Stop: | ||
| 6 | # Default-Start: | ||
| 7 | # Default-Stop: 6 | ||
| 8 | # Short-Description: Execute the reboot command. | ||
| 9 | # Description: | ||
| 10 | ### END INIT INFO | ||
| 11 | |||
| 12 | PATH=/sbin:/bin:/usr/sbin:/usr/bin | ||
| 13 | |||
| 14 | echo -n "Rebooting... " | ||
| 15 | reboot -d -f -i | ||
diff --git a/meta/packages/initscripts/initscripts-1.0/rmnologin.sh b/meta/packages/initscripts/initscripts-1.0/rmnologin.sh deleted file mode 100755 index 417efc2456..0000000000 --- a/meta/packages/initscripts/initscripts-1.0/rmnologin.sh +++ /dev/null | |||
| @@ -1,20 +0,0 @@ | |||
| 1 | #! /bin/sh | ||
| 2 | ### BEGIN INIT INFO | ||
| 3 | # Provides: rmnologin | ||
| 4 | # Required-Start: $remote_fs $all | ||
| 5 | # Required-Stop: | ||
| 6 | # Default-Start: 2 3 4 5 | ||
| 7 | # Default-Stop: | ||
| 8 | # Short-Description: Remove /etc/nologin at boot | ||
| 9 | # Description: This script removes the /etc/nologin file as the | ||
| 10 | # last step in the boot process, if DELAYLOGIN=yes. | ||
| 11 | # If DELAYLOGIN=no, /etc/nologin was not created by | ||
| 12 | # bootmisc earlier in the boot process. | ||
| 13 | ### END INIT INFO | ||
| 14 | |||
| 15 | if test -f /etc/nologin.boot | ||
| 16 | then | ||
| 17 | rm -f /etc/nologin /etc/nologin.boot | ||
| 18 | fi | ||
| 19 | |||
| 20 | : exit 0 | ||
diff --git a/meta/packages/initscripts/initscripts-1.0/save-rtc.sh b/meta/packages/initscripts/initscripts-1.0/save-rtc.sh deleted file mode 100644 index 75e43001b8..0000000000 --- a/meta/packages/initscripts/initscripts-1.0/save-rtc.sh +++ /dev/null | |||
| @@ -1,13 +0,0 @@ | |||
| 1 | #! /bin/sh | ||
| 2 | ### BEGIN INIT INFO | ||
| 3 | # Provides: save-rtc | ||
| 4 | # Required-Start: | ||
| 5 | # Required-Stop: $local_fs hwclock | ||
| 6 | # Default-Start: S | ||
| 7 | # Default-Stop: 0 6 | ||
| 8 | # Short-Description: Store system clock into file | ||
| 9 | # Description: | ||
| 10 | ### END INIT INFO | ||
| 11 | |||
| 12 | # Update the timestamp | ||
| 13 | date +%Y%m%d%2H%2M > /etc/timestamp2 | ||
diff --git a/meta/packages/initscripts/initscripts-1.0/sendsigs b/meta/packages/initscripts/initscripts-1.0/sendsigs deleted file mode 100755 index 2b0f8f3631..0000000000 --- a/meta/packages/initscripts/initscripts-1.0/sendsigs +++ /dev/null | |||
| @@ -1,21 +0,0 @@ | |||
| 1 | #! /bin/sh | ||
| 2 | ### BEGIN INIT INFO | ||
| 3 | # Provides: sendsigs | ||
| 4 | # Required-Start: | ||
| 5 | # Required-Stop: umountnfs | ||
| 6 | # Default-Start: | ||
| 7 | # Default-Stop: 0 6 | ||
| 8 | # Short-Description: Kill all remaining processes. | ||
| 9 | # Description: | ||
| 10 | ### END INIT INFO | ||
| 11 | |||
| 12 | PATH=/sbin:/bin:/usr/sbin:/usr/bin | ||
| 13 | |||
| 14 | # Kill all processes. | ||
| 15 | echo "Sending all processes the TERM signal..." | ||
| 16 | killall5 -15 | ||
| 17 | sleep 5 | ||
| 18 | echo "Sending all processes the KILL signal..." | ||
| 19 | killall5 -9 | ||
| 20 | |||
| 21 | : exit 0 | ||
diff --git a/meta/packages/initscripts/initscripts-1.0/single b/meta/packages/initscripts/initscripts-1.0/single deleted file mode 100755 index 0cad693f20..0000000000 --- a/meta/packages/initscripts/initscripts-1.0/single +++ /dev/null | |||
| @@ -1,24 +0,0 @@ | |||
| 1 | #! /bin/sh | ||
| 2 | ### BEGIN INIT INFO | ||
| 3 | # Provides: single | ||
| 4 | # Required-Start: $local_fs $all killprocs | ||
| 5 | # Required-Stop: | ||
| 6 | # Default-Start: 1 | ||
| 7 | # Default-Stop: | ||
| 8 | # Short-Description: executed by init(8) upon entering runlevel 1 (single). | ||
| 9 | ### END INIT INFO | ||
| 10 | |||
| 11 | PATH="/sbin:/bin:/usr/sbin:/usr/bin" | ||
| 12 | |||
| 13 | # Kill all processes. | ||
| 14 | echo "Sending all processes the TERM signal..." | ||
| 15 | killall5 -15 | ||
| 16 | sleep 5 | ||
| 17 | echo "Sending all processes the KILL signal..." | ||
| 18 | killall5 -9 | ||
| 19 | |||
| 20 | # We start update here, since we just killed it. | ||
| 21 | test -x /sbin/update && update | ||
| 22 | |||
| 23 | echo "Entering single-user mode..." | ||
| 24 | exec init -t1 S | ||
diff --git a/meta/packages/initscripts/initscripts-1.0/sysfs.sh b/meta/packages/initscripts/initscripts-1.0/sysfs.sh deleted file mode 100644 index be28bb35bf..0000000000 --- a/meta/packages/initscripts/initscripts-1.0/sysfs.sh +++ /dev/null | |||
| @@ -1,19 +0,0 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | ### BEGIN INIT INFO | ||
| 3 | # Provides: mountvirtfs | ||
| 4 | # Required-Start: | ||
| 5 | # Required-Stop: | ||
| 6 | # Default-Start: S | ||
| 7 | # Default-Stop: | ||
| 8 | # Short-Description: Mount kernel virtual file systems. | ||
| 9 | # Description: Mount initial set of virtual filesystems the kernel | ||
| 10 | # provides and that are required by everything. | ||
| 11 | ### END INIT INFO | ||
| 12 | |||
| 13 | if [ -e /proc ] && ! [ -e /proc/mounts ]; then | ||
| 14 | mount -t proc proc /proc | ||
| 15 | fi | ||
| 16 | |||
| 17 | if [ -e /sys ] && grep -q sysfs /proc/filesystems; then | ||
| 18 | mount sysfs /sys -t sysfs | ||
| 19 | fi | ||
diff --git a/meta/packages/initscripts/initscripts-1.0/umountfs b/meta/packages/initscripts/initscripts-1.0/umountfs deleted file mode 100755 index 5c6793dc9c..0000000000 --- a/meta/packages/initscripts/initscripts-1.0/umountfs +++ /dev/null | |||
| @@ -1,24 +0,0 @@ | |||
| 1 | #! /bin/sh | ||
| 2 | ### BEGIN INIT INFO | ||
| 3 | # Provides: umountfs | ||
| 4 | # Required-Start: | ||
| 5 | # Required-Stop: | ||
| 6 | # Default-Start: | ||
| 7 | # Default-Stop: 0 6 | ||
| 8 | # Short-Description: Turn off swap and unmount all local file systems. | ||
| 9 | # Description: | ||
| 10 | ### END INIT INFO | ||
| 11 | |||
| 12 | PATH=/sbin:/bin:/usr/sbin:/usr/bin | ||
| 13 | |||
| 14 | echo "Deactivating swap..." | ||
| 15 | swapoff -a | ||
| 16 | |||
| 17 | # We leave /proc mounted. | ||
| 18 | echo "Unmounting local filesystems..." | ||
| 19 | mount -o remount,ro /mnt/ram | ||
| 20 | umount -f -a -r | ||
| 21 | |||
| 22 | mount -o remount,ro / | ||
| 23 | |||
| 24 | : exit 0 | ||
diff --git a/meta/packages/initscripts/initscripts-1.0/umountnfs.sh b/meta/packages/initscripts/initscripts-1.0/umountnfs.sh deleted file mode 100755 index a4fb821d91..0000000000 --- a/meta/packages/initscripts/initscripts-1.0/umountnfs.sh +++ /dev/null | |||
| @@ -1,32 +0,0 @@ | |||
| 1 | ### BEGIN INIT INFO | ||
| 2 | # Provides: umountnfs | ||
| 3 | # Required-Start: | ||
| 4 | # Required-Stop: umountfs | ||
| 5 | # Should-Stop: $network $portmap | ||
| 6 | # Default-Start: | ||
| 7 | # Default-Stop: 0 6 | ||
| 8 | # Short-Description: Unmount all network filesystems | ||
| 9 | ### END INIT INFO | ||
| 10 | |||
| 11 | PATH=/sbin:/bin:/usr/sbin:/usr/bin | ||
| 12 | |||
| 13 | # Write a reboot record to /var/log/wtmp before unmounting | ||
| 14 | halt -w | ||
| 15 | |||
| 16 | echo "Unmounting remote filesystems..." | ||
| 17 | |||
| 18 | test -f /etc/fstab && ( | ||
| 19 | |||
| 20 | # | ||
| 21 | # Read through fstab line by line and unount network file systems | ||
| 22 | # | ||
| 23 | while read device mountpt fstype options | ||
| 24 | do | ||
| 25 | if test "$fstype" = nfs || test "$fstype" = smbfs || test "$fstype" = ncpfs | ||
| 26 | then | ||
| 27 | umount -f $mountpt | ||
| 28 | fi | ||
| 29 | done | ||
| 30 | ) < /etc/fstab | ||
| 31 | |||
| 32 | : exit 0 | ||
diff --git a/meta/packages/initscripts/initscripts-1.0/urandom b/meta/packages/initscripts/initscripts-1.0/urandom deleted file mode 100755 index b6d807cf3b..0000000000 --- a/meta/packages/initscripts/initscripts-1.0/urandom +++ /dev/null | |||
| @@ -1,46 +0,0 @@ | |||
| 1 | #! /bin/sh | ||
| 2 | ### BEGIN INIT INFO | ||
| 3 | # Provides: urandom | ||
| 4 | # Required-Start: $local_fs mountvirtfs | ||
| 5 | # Required-Stop: $local_fs | ||
| 6 | # Default-Start: S | ||
| 7 | # Default-Stop: 0 6 | ||
| 8 | # Short-Description: Save and restore the random seed | ||
| 9 | # Description: Save the random seed on shutdown and restore it on boot, | ||
| 10 | # to ensure that the seed isn't predicable on startup | ||
| 11 | # (because the boot process is predictable) | ||
| 12 | ### END INIT INFO | ||
| 13 | |||
| 14 | test -c /dev/urandom || exit 0 | ||
| 15 | . /etc/default/rcS | ||
| 16 | |||
| 17 | case "$1" in | ||
| 18 | start|"") | ||
| 19 | test "$VERBOSE" != no && echo "Initializing random number generator..." | ||
| 20 | # Load and then save 512 bytes, | ||
| 21 | # which is the size of the entropy pool | ||
| 22 | if test -f /var/lib/urandom/random-seed | ||
| 23 | then | ||
| 24 | cat /var/lib/urandom/random-seed >/dev/urandom | ||
| 25 | fi | ||
| 26 | rm -f /var/lib/urandom/random-seed | ||
| 27 | umask 077 | ||
| 28 | dd if=/dev/urandom of=/var/lib/urandom/random-seed count=1 \ | ||
| 29 | >/dev/null 2>&1 || echo "urandom start: failed." | ||
| 30 | umask 022 | ||
| 31 | ;; | ||
| 32 | stop) | ||
| 33 | # Carry a random seed from shut-down to start-up; | ||
| 34 | # see documentation in linux/drivers/char/random.c | ||
| 35 | test "$VERBOSE" != no && echo "Saving random seed..." | ||
| 36 | umask 077 | ||
| 37 | dd if=/dev/urandom of=/var/lib/urandom/random-seed count=1 \ | ||
| 38 | >/dev/null 2>&1 || echo "urandom stop: failed." | ||
| 39 | ;; | ||
| 40 | *) | ||
| 41 | echo "Usage: urandom {start|stop}" >&2 | ||
| 42 | exit 1 | ||
| 43 | ;; | ||
| 44 | esac | ||
| 45 | |||
| 46 | exit 0 | ||
diff --git a/meta/packages/initscripts/initscripts-1.0/volatiles b/meta/packages/initscripts/initscripts-1.0/volatiles deleted file mode 100644 index b2ae2794dc..0000000000 --- a/meta/packages/initscripts/initscripts-1.0/volatiles +++ /dev/null | |||
| @@ -1,39 +0,0 @@ | |||
| 1 | # This configuration file lists filesystem objects that should get verified | ||
| 2 | # during startup and be created if missing. | ||
| 3 | # | ||
| 4 | # Every line must either be a comment starting with # | ||
| 5 | # or a definition of format: | ||
| 6 | # <type> <owner> <group> <mode> <path> <linksource> | ||
| 7 | # where the items are separated by whitespace ! | ||
| 8 | # | ||
| 9 | # <type> : d|f|l : (d)irectory|(f)ile|(l)ink | ||
| 10 | # | ||
| 11 | # A linking example: | ||
| 12 | # l root root 0777 /var/test /tmp/testfile | ||
| 13 | # f root root 0644 /var/test none | ||
| 14 | # | ||
| 15 | # Understanding links: | ||
| 16 | # When populate-volatile is to verify/create a directory or file, it will first | ||
| 17 | # check it's existence. If a link is found to exist in the place of the target, | ||
| 18 | # the path of the target is replaced with the target the link points to. | ||
| 19 | # Thus, if a link is in the place to be verified, the object will be created | ||
| 20 | # in the place the link points to instead. | ||
| 21 | # This explains the order of "link before object" as in the example above, where | ||
| 22 | # a link will be created at /var/test pointing to /tmp/testfile and due to this | ||
| 23 | # link the file defined as /var/test will actually be created as /tmp/testfile. | ||
| 24 | d root root 0755 /var/volatile/cache none | ||
| 25 | d root root 1777 /var/volatile/lock none | ||
| 26 | d root root 0755 /var/volatile/log none | ||
| 27 | d root root 0755 /var/volatile/run none | ||
| 28 | d root root 1777 /var/volatile/tmp none | ||
| 29 | l root root 0755 /var/cache /var/volatile/cache | ||
| 30 | l root root 1777 /var/lock /var/volatile/lock | ||
| 31 | l root root 0755 /var/log /var/volatile/log | ||
| 32 | l root root 0755 /var/run /var/volatile/run | ||
| 33 | l root root 1777 /var/tmp /var/volatile/tmp | ||
| 34 | d root root 0755 /var/lock/subsys none | ||
| 35 | f root root 0664 /var/log/wtmp none | ||
| 36 | f root root 0664 /var/run/utmp none | ||
| 37 | l root root 0644 /etc/resolv.conf /var/run/resolv.conf | ||
| 38 | f root root 0644 /var/run/resolv.conf none | ||
| 39 | |||
