summaryrefslogtreecommitdiff
path: root/packages/openslug-init/openslug-init-0.10/boot/nfs
diff options
context:
space:
mode:
Diffstat (limited to 'packages/openslug-init/openslug-init-0.10/boot/nfs')
-rwxr-xr-x[-rw-r--r--]packages/openslug-init/openslug-init-0.10/boot/nfs17
1 files changed, 17 insertions, 0 deletions
diff --git a/packages/openslug-init/openslug-init-0.10/boot/nfs b/packages/openslug-init/openslug-init-0.10/boot/nfs
index e69de29bb2..534d8b7cb0 100644..100755
--- a/packages/openslug-init/openslug-init-0.10/boot/nfs
+++ b/packages/openslug-init/openslug-init-0.10/boot/nfs
@@ -0,0 +1,17 @@
+#!/bin/sh
+# boot from the nfs partition "$1" (which
+# must be given) using options from the rest of
+# the command line.
+#
+/sbin/leds -A '!gr'
+#
+# Use the standard init path (see /etc/init.d/rcS)
+export PATH=/sbin:/bin:/usr/sbin:/usr/bin
+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