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.shutdown | |
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.shutdown')
-rw-r--r-- | etc/rc.shutdown | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/etc/rc.shutdown b/etc/rc.shutdown index 0479e02..5492d89 100644 --- a/etc/rc.shutdown +++ b/etc/rc.shutdown @@ -17,6 +17,15 @@ HOME=/ PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin export HOME PATH +# Check if /var/db/mounttab is clean. +case $1 in +reboot) + if [ -f /var/db/mounttab ]; then + rpc.umntall + fi + ;; +esac + echo -n "Shutting down daemon processes: " # Insert shutdown procedures here |