aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d/network
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2012-03-09 13:12:38 -0500
committerBill Nottingham <notting@redhat.com>2012-03-09 13:12:38 -0500
commitae0888cf498e7bddbde2c2a4faf7358c0d5bc87f (patch)
treee0ba55bff815080cbbb0a7e75f61772a46bace26 /rc.d/init.d/network
parentae6444f988e9a86785b5a501c9da889396c0916b (diff)
downloadinitscripts-ae0888cf498e7bddbde2c2a4faf7358c0d5bc87f.tar
initscripts-ae0888cf498e7bddbde2c2a4faf7358c0d5bc87f.tar.gz
initscripts-ae0888cf498e7bddbde2c2a4faf7358c0d5bc87f.tar.bz2
initscripts-ae0888cf498e7bddbde2c2a4faf7358c0d5bc87f.tar.xz
initscripts-ae0888cf498e7bddbde2c2a4faf7358c0d5bc87f.zip
Make sure there's no headings in the findmnt output.
Diffstat (limited to 'rc.d/init.d/network')
-rwxr-xr-xrc.d/init.d/network2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.d/init.d/network b/rc.d/init.d/network
index 93b93d9d..fe9476d7 100755
--- a/rc.d/init.d/network
+++ b/rc.d/init.d/network
@@ -184,7 +184,7 @@ case "$1" in
# If this is a final shutdown/halt, check for network FS,
# and unmount them even if the user didn't turn on netfs
if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
- NETMOUNTS=$(findmnt -m -t nfs,nfs4,smbfs,ncpfs,cifs 2>/dev/null)
+ NETMOUNTS=$(findmnt -n -m -t nfs,nfs4,smbfs,ncpfs,cifs 2>/dev/null)
if [ -n "$NETMOUNTS" ] ; then
/etc/init.d/netfs stop
fi