diff options
6 files changed, 0 insertions, 557 deletions
diff --git a/meta/recipes-core/initscripts/initscripts-1.0/jornada6xx/checkroot.sh b/meta/recipes-core/initscripts/initscripts-1.0/jornada6xx/checkroot.sh deleted file mode 100755 index 9e2d3cfc85..0000000000 --- a/meta/recipes-core/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/recipes-core/initscripts/initscripts-1.0/jornada7xx/checkroot.sh b/meta/recipes-core/initscripts/initscripts-1.0/jornada7xx/checkroot.sh deleted file mode 100755 index 9e2d3cfc85..0000000000 --- a/meta/recipes-core/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/recipes-core/initscripts/initscripts-1.0/om-gta01/inittab b/meta/recipes-core/initscripts/initscripts-1.0/om-gta01/inittab deleted file mode 100644 index 8d313b2a58..0000000000 --- a/meta/recipes-core/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/recipes-core/initscripts/initscripts-1.0/openmn/extractfs b/meta/recipes-core/initscripts/initscripts-1.0/openmn/extractfs deleted file mode 100755 index 7e57dedd2d..0000000000 --- a/meta/recipes-core/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/recipes-core/initscripts/initscripts-1.0/openmn/packages b/meta/recipes-core/initscripts/initscripts-1.0/openmn/packages deleted file mode 100755 index 2566487d2d..0000000000 --- a/meta/recipes-core/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/recipes-core/initscripts/initscripts-1.0/openmn/umountfs b/meta/recipes-core/initscripts/initscripts-1.0/openmn/umountfs deleted file mode 100755 index 399194109b..0000000000 --- a/meta/recipes-core/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 | ||
