123456789101112131415161718192021222324252627282930313233 |
- #!/bin/sh
- PATH=/sbin:/bin:/usr/sbin:/usr/bin
- halt -w
- echo "Unmounting remote filesystems..."
- test -f /etc/fstab && (
- while read device mountpt fstype options
- do
- if test "$fstype" = nfs || test "$fstype" = smbfs || test "$fstype" = ncpfs || test "$fstype" = cifs
- then
- umount -f $mountpt
- fi
- done
- ) < /etc/fstab
- : exit 0
|