summaryrefslogtreecommitdiff
path: root/packages/slugos-init/files/boot/nfs
blob: 856f4e56b9096448727467bea2ae3c05ef73c877 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/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
leds boot system
#
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
leds beep -f 1000 -r 2
exec /boot/flash