#! /bin/sh # # umountnfs.sh Unmount all network filesystems. # # Version: @(#)umountnfs.sh 2.78 05-Jun-2000 miquels@cistron.nl # PATH=/sbin:/bin:/usr/sbin:/usr/bin case "`uname -r`" in 1.*|2.[01].*) FORCE="" ;; *) FORCE="-f" ;; esac # Write a reboot record to /var/log/wtmp before unmounting halt -w echo "Unmounting remote filesystems..." umount -tnfs,smbfs,ncpfs $FORCE -a -r : exit 0