diff options
author | dillon <dillon@FreeBSD.org> | 1999-01-25 04:40:53 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 1999-01-25 04:40:53 +0000 |
commit | f4c4d2c0f1bbae8df3756e58271c113ee1a41c9f (patch) | |
tree | 8e51777fb4dfaf419d54beac32f1146260145857 /etc/rc | |
parent | 27e0454ab55ec5958db1e3cad5297214939c0c89 (diff) | |
download | FreeBSD-src-f4c4d2c0f1bbae8df3756e58271c113ee1a41c9f.zip FreeBSD-src-f4c4d2c0f1bbae8df3756e58271c113ee1a41c9f.tar.gz |
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.
Diffstat (limited to 'etc/rc')
-rw-r--r-- | etc/rc | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -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 |