summaryrefslogtreecommitdiff
path: root/packages/openprotium-init/files/boot/nfs
diff options
context:
space:
mode:
authorAndrew Wilcox <andy@protium.com>2006-12-23 22:02:58 +0000
committerAndrew Wilcox <andy@protium.com>2006-12-23 22:02:58 +0000
commite934fbdc234809387a52cb3413b198101ca17a6e (patch)
treef095428810a4c3b47ed33db36976adf2b7745ec5 /packages/openprotium-init/files/boot/nfs
parent2431508da0e4c9982679df090d44ee477b7c9355 (diff)
openprotium-init: a descendant of slugos-init with protium and storcenter related changes.
Diffstat (limited to 'packages/openprotium-init/files/boot/nfs')
-rw-r--r--packages/openprotium-init/files/boot/nfs19
1 files changed, 19 insertions, 0 deletions
diff --git a/packages/openprotium-init/files/boot/nfs b/packages/openprotium-init/files/boot/nfs
new file mode 100644
index 0000000000..7cfce66cbb
--- /dev/null
+++ b/packages/openprotium-init/files/boot/nfs
@@ -0,0 +1,19 @@
+#!/bin/sh
+# boot from the nfs partition "$1" (which
+# must be given) using options from the rest of
+# the command line.
+#
+# Use the standard init path (see /etc/init.d/rcS)
+export PATH=/sbin:/bin:/usr/sbin:/usr/bin
+#
+. /etc/default/functions
+scc -l redflash -f auto
+#
+if /boot/network
+then
+ # network is up and running, the NFS mount will
+ # now succeed (possibly), use /boot/disk
+ exec /boot/disk "$@"
+fi
+# fallback - use the flash boot
+exec /boot/flash