diff options
Diffstat (limited to 'packages/slugos-init/files/boot/flash')
| -rwxr-xr-x | packages/slugos-init/files/boot/flash | 18 |
1 files changed, 9 insertions, 9 deletions
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 |
