diff options
author | dillon <dillon@FreeBSD.org> | 1999-11-22 04:23:11 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 1999-11-22 04:23:11 +0000 |
commit | e8e6885c6b0dee9c5ecf9f433c1eeac5cc116a51 (patch) | |
tree | db8aaaa6673d31f85b8712d63eb284e6fb9ce007 /etc/rc | |
parent | dadd809c39e5c694c3b2ecf910e3b181cea21530 (diff) | |
download | FreeBSD-src-e8e6885c6b0dee9c5ecf9f433c1eeac5cc116a51.zip FreeBSD-src-e8e6885c6b0dee9c5ecf9f433c1eeac5cc116a51.tar.gz |
Finish up umntall support. init now passed an argument to the
rundown script 'reboot' or 'single'. ISO support (which never
worked) has been removed from mount_nfs. mount_nfs and umount
now use mounttab, which allows umntall to work properly. The
rc scripts now call umntall as appropriate.
Submitted by: Martin Blapp <mb@imp.ch>
Diffstat (limited to 'etc/rc')
-rw-r--r-- | etc/rc | 27 |
1 files changed, 24 insertions, 3 deletions
@@ -113,10 +113,17 @@ esac umount -a >/dev/null 2>&1 -# Where/how would this get set? +# Early NFS mounts and clean up of /var/db/mounttab. # case ${early_nfs_mounts} in [Yy][Ee][Ss]) + case $1 in + autoboot) + if [ -f /var/db/mounttab ]; then + rpc.umntall -k + fi + ;; + esac mount -a ;; *) @@ -199,10 +206,24 @@ if [ -r /etc/rc.network ]; then network_pass1 fi -# Retest for early_nfs here? +# Only mount NFS file systems if $early_nfs_mounts is false. +# If there is a /var/db/mounttab, clean it up with rpc.umntall. # echo -n "Mounting NFS file systems" -mount -a -t nfs +case ${early_nfs_mounts} in +[Yy][Ee][Ss]) + ;; +*) + case $1 in + autoboot) + if [ -f /var/db/mounttab ]; then + rpc.umntall -k + fi + ;; + esac + mount -a -t nfs + ;; +esac echo . # Whack the pty perms back into shape. |