netmount, localmount, halt.sh and net scripts now check OS specific flags to see if a mount is network mounted (linux = fstab, *bsd = "local" in mount options) or not, #192772.

This commit is contained in:
Roy Marples
2007-10-09 15:33:05 +00:00
parent e89805e0c0
commit dc0ba7ebf3
7 changed files with 111 additions and 46 deletions

View File

@@ -12,8 +12,8 @@ do_unmount() {
f_kill="-"
fi
mountinfo ${2:+--skip-point-regex} $2 ${3:+--node-regex} $3 ${4:+--fstype-regex} $4 ${5:+--skip-fstype-regex} $5 | \
while read mnt; do
shift
mountinfo "$@" | while read mnt; do
case "${cmd}" in
umount*)
# If we're using the mount (probably /usr) then don't unmount us