summaryrefslogtreecommitdiffstats
path: root/etc/rc.shutdown
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>1999-11-22 04:23:11 +0000
committerdillon <dillon@FreeBSD.org>1999-11-22 04:23:11 +0000
commite8e6885c6b0dee9c5ecf9f433c1eeac5cc116a51 (patch)
treedb8aaaa6673d31f85b8712d63eb284e6fb9ce007 /etc/rc.shutdown
parentdadd809c39e5c694c3b2ecf910e3b181cea21530 (diff)
downloadFreeBSD-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.shutdown9
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
OpenPOWER on IntegriCloud