summaryrefslogtreecommitdiff
path: root/recipes/openprotium-init/files/boot/nfs
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/openprotium-init/files/boot/nfs')
-rw-r--r--recipes/openprotium-init/files/boot/nfs19
1 files changed, 19 insertions, 0 deletions
diff --git a/recipes/openprotium-init/files/boot/nfs b/recipes/openprotium-init/files/boot/nfs
new file mode 100644
index 0000000000..7cfce66cbb
--- /dev/null
+++ b/recipes/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