Introduce rc script for BOOTP 'diskless' boot. Well, not quite diskless
since the kernel must be booted from something ( like a floppy ). This script must occur near the beginning of the rc file in order to support read-only NFS mounts, which in turn allows all the BOOTP machines to use the same / and /usr. The companion rc.diskless script is forthcoming.
This commit is contained in:
parent
43482c407d
commit
3c83a6adc9
13
etc/rc
13
etc/rc
@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
# $Id: rc,v 1.168 1999/01/18 03:25:10 grog Exp $
|
||||
# $Id: rc,v 1.169 1999/01/20 12:30:13 jkh Exp $
|
||||
# From: @(#)rc 5.27 (Berkeley) 6/5/91
|
||||
|
||||
# System startup script run by init on autoboot
|
||||
@ -22,6 +22,17 @@ HOME=/; export HOME
|
||||
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin
|
||||
export PATH
|
||||
|
||||
# BOOTP diskless boot. We have to run the rc file early in order to
|
||||
# handle read-only NFS mounts, where the various config files
|
||||
# in /etc often don't apply. rc.diskless may terminate the rc script
|
||||
# early or it may fall through, depending on the case.
|
||||
#
|
||||
if [ -f /etc/rc.diskless ]; then
|
||||
if [ `/sbin/sysctl -n vfs.nfs.diskless_valid` != 0 ]; then
|
||||
. /etc/rc.diskless
|
||||
fi
|
||||
fi
|
||||
|
||||
# Configure ccd devices.
|
||||
if [ -f /etc/ccd.conf ]; then
|
||||
ccdconfig -C
|
||||
|
Loading…
x
Reference in New Issue
Block a user