diff options
Diffstat (limited to 'packages/slugos-init/files/boot/flash')
-rw-r--r-- | packages/slugos-init/files/boot/flash | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/packages/slugos-init/files/boot/flash b/packages/slugos-init/files/boot/flash new file mode 100644 index 0000000000..e0bcebc9b8 --- /dev/null +++ b/packages/slugos-init/files/boot/flash @@ -0,0 +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 +# 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' +exec <>/dev/console >&0 2>&0 +exec /sbin/sulogin +exec /bin/sh +exit 1 |