aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d/network
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2005-04-27 16:40:18 +0000
committerBill Nottingham <notting@redhat.com>2005-04-27 16:40:18 +0000
commitf30714aabace8847a225899e9427cad86b7cb5c5 (patch)
tree8b6d82f2ff470e0edcade60d14855c7b095d2f7c /rc.d/init.d/network
parent1635b8ae87831cc4cd836ed75bd35cbe7c05fd43 (diff)
downloadinitscripts-f30714aabace8847a225899e9427cad86b7cb5c5.tar
initscripts-f30714aabace8847a225899e9427cad86b7cb5c5.tar.gz
initscripts-f30714aabace8847a225899e9427cad86b7cb5c5.tar.bz2
initscripts-f30714aabace8847a225899e9427cad86b7cb5c5.tar.xz
initscripts-f30714aabace8847a225899e9427cad86b7cb5c5.zip
I'm going to go out on a limb and say that /proc/mounts *doesn't* have
comments.
Diffstat (limited to 'rc.d/init.d/network')
-rwxr-xr-xrc.d/init.d/network6
1 files changed, 3 insertions, 3 deletions
diff --git a/rc.d/init.d/network b/rc.d/init.d/network
index 42a69891..93c9a3a5 100755
--- a/rc.d/init.d/network
+++ b/rc.d/init.d/network
@@ -184,9 +184,9 @@ case "$1" in
# and unmount them even if the user didn't turn on netfs
if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
- NFSMTAB=`LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ { print $2 }' /proc/mounts`
- SMBMTAB=`LC_ALL=C awk '!/^#/ && $3 == "smbfs" { print $2 }' /proc/mounts`
- NCPMTAB=`LC_ALL=C awk '!/^#/ && $3 == "ncpfs" { print $2 }' /proc/mounts`
+ NFSMTAB=`LC_ALL=C awk '$3 ~ /^nfs/ { print $2 }' /proc/mounts`
+ SMBMTAB=`LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts`
+ NCPMTAB=`LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts`
if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
/etc/init.d/netfs stop
fi