From ae0888cf498e7bddbde2c2a4faf7358c0d5bc87f Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Fri, 9 Mar 2012 13:12:38 -0500 Subject: Make sure there's no headings in the findmnt output. --- rc.d/init.d/network | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rc.d/init.d/network') 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 -- cgit v1.2.1