diff options
author | John Bowler <jbowler@nslu2-linux.org> | 2006-01-29 10:33:38 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2006-01-29 10:33:38 +0000 |
commit | ce73cafcd4cf4fe1e637d9636780c3d3609998ca (patch) | |
tree | fefde623452feb70d8e01ec23f1c92bd510247bd /packages/slugos-init/files/boot | |
parent | 726cd5cea1eff14184731f709a5409da494f9dc3 (diff) |
slugos-init: update for new LEDs, turnup save/restore suppport in 0.10
- /sbin/leds is now a script which uses /sys/class/leds
All scripts are not in /sbin
/sbin/sysconf does SysConf reading and now implements save/restore
of the system configuration.
turnup, reflash and sysconfsetup use /sbin/sysconf as appropriate
Unused files removed
Diffstat (limited to 'packages/slugos-init/files/boot')
-rwxr-xr-x | packages/slugos-init/files/boot/disk | 4 | ||||
-rwxr-xr-x | packages/slugos-init/files/boot/flash | 18 | ||||
-rwxr-xr-x | packages/slugos-init/files/boot/network | 11 | ||||
-rwxr-xr-x | packages/slugos-init/files/boot/nfs | 3 | ||||
-rwxr-xr-x | packages/slugos-init/files/boot/ram | 5 |
5 files changed, 17 insertions, 24 deletions
diff --git a/packages/slugos-init/files/boot/disk b/packages/slugos-init/files/boot/disk index ede33a3ee6..e8d1f5245b 100755 --- a/packages/slugos-init/files/boot/disk +++ b/packages/slugos-init/files/boot/disk @@ -3,14 +3,14 @@ # must be given) using options from the rest of # the command line. # -/sbin/leds -A '!gr' -# # Use the standard init path (see /etc/init.d/rcS) export PATH=/sbin:/bin:/usr/sbin:/usr/bin # # Load the helper functions . /etc/default/functions # +leds boot system +# if test -n "$1" then device="$1" diff --git a/packages/slugos-init/files/boot/flash b/packages/slugos-init/files/boot/flash index e0bcebc9b8..12729d7b5d 100755 --- a/packages/slugos-init/files/boot/flash +++ b/packages/slugos-init/files/boot/flash @@ -1,14 +1,14 @@ #!/bin/sh # boot from the current (flash) root partition -# nothing need be done, make the power led flash -# amber to indicate runlevel S -/sbin/leds -A '!gr' -exec /sbin/init +# nothing need be done apart from setting the +# system LED status correctly +. /etc/default/functions +leds beep +leds boot system +test -x /sbin/init && exec /sbin/init # fallback if /sbin/init has been deleted (bad!) -# flashing amber/red - failed early boot -# disk lights flashing: failed in flash boot! -/sbin/leds +A '!g12' +leds boot system panic exec <>/dev/console >&0 2>&0 -exec /sbin/sulogin -exec /bin/sh +test -x /sbin/sulogin && exec /sbin/sulogin +test -x /bin/sh && exec /bin/sh exit 1 diff --git a/packages/slugos-init/files/boot/network b/packages/slugos-init/files/boot/network index 02b226d1f3..599250e744 100755 --- a/packages/slugos-init/files/boot/network +++ b/packages/slugos-init/files/boot/network @@ -11,15 +11,6 @@ # Now all the information for booting should be in the configuration # file. Config the loopback and network interfaces. ifconfig lo 127.0.0.1 up -mac="$(config mac)" iface="$(config iface)" -if test -n "$mac" -a -n "$iface" -a "$mac" != "00:00:00:00:00:00" -a "$mac" != "FF:FF:FF:FF:FF:FF" -then - if ifconfig "$iface" hw ether "$mac" && - ifup "$iface" - then - exit 0 - fi -fi +test -n "$iface" && ifup "$iface" # exit code is true only if the interface config has succeeded -exit 1 diff --git a/packages/slugos-init/files/boot/nfs b/packages/slugos-init/files/boot/nfs index 534d8b7cb0..5f1cbbe323 100755 --- a/packages/slugos-init/files/boot/nfs +++ b/packages/slugos-init/files/boot/nfs @@ -3,7 +3,8 @@ # must be given) using options from the rest of # the command line. # -/sbin/leds -A '!gr' +. /etc/default/functions +leds boot system # # Use the standard init path (see /etc/init.d/rcS) export PATH=/sbin:/bin:/usr/sbin:/usr/bin diff --git a/packages/slugos-init/files/boot/ram b/packages/slugos-init/files/boot/ram index 66d46a7089..42ff8329f9 100755 --- a/packages/slugos-init/files/boot/ram +++ b/packages/slugos-init/files/boot/ram @@ -3,14 +3,15 @@ # must be given) using options from the rest of # the command line. # -/sbin/leds -A '!gr' -# # Use the standard init path (see /etc/init.d/rcS) export PATH=/sbin:/bin:/usr/sbin:/usr/bin # # Load the helper functions . /etc/default/functions # +leds beep double +leds boot system +# if test -n "$1" then device="$1" |