diff options
author | Andrew Wilcox <andy@protium.com> | 2006-12-23 22:02:58 +0000 |
---|---|---|
committer | Andrew Wilcox <andy@protium.com> | 2006-12-23 22:02:58 +0000 |
commit | e934fbdc234809387a52cb3413b198101ca17a6e (patch) | |
tree | f095428810a4c3b47ed33db36976adf2b7745ec5 /packages/openprotium-init/files/boot/flash | |
parent | 2431508da0e4c9982679df090d44ee477b7c9355 (diff) |
openprotium-init: a descendant of slugos-init with protium and storcenter related changes.
Diffstat (limited to 'packages/openprotium-init/files/boot/flash')
-rw-r--r-- | packages/openprotium-init/files/boot/flash | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/packages/openprotium-init/files/boot/flash b/packages/openprotium-init/files/boot/flash new file mode 100644 index 0000000000..40f64c9701 --- /dev/null +++ b/packages/openprotium-init/files/boot/flash @@ -0,0 +1,13 @@ +#!/bin/sh +# boot from the current (flash) root partition +# nothing need be done apart from setting the +# system LED status correctly +. /etc/default/functions +scc -l redflash -f auto +test -x /sbin/init && exec /sbin/init +# fallback if /sbin/init has been deleted (bad!) +scc -l red +exec <>/dev/console >&0 2>&0 +test -x /sbin/sulogin && exec /sbin/sulogin +test -x /bin/sh && exec /bin/sh +exit 1 |