SVN: rc-scripts/trunk/rc.d/init.d/network

baggins baggins at pld-linux.org
Tue Mar 20 13:09:17 CET 2007


Author: baggins
Date: Tue Mar 20 13:09:16 2007
New Revision: 8389

Modified:
   rc-scripts/trunk/rc.d/init.d/network
Log:
- simpler way to umount nfs4


Modified: rc-scripts/trunk/rc.d/init.d/network
==============================================================================
--- rc-scripts/trunk/rc.d/init.d/network	(original)
+++ rc-scripts/trunk/rc.d/init.d/network	Tue Mar 20 13:09:16 2007
@@ -226,10 +226,7 @@
 		else
 			netmtab=$(awk '{ if ($3 ~ /^(nfs|nfs4|smbfs|ncpfs|cifs)$/ ) print $3}' /proc/mounts)
 			if (echo "$netmtab" | grep -q nfs); then
-				run_cmd "Unmounting NFS filesystems" umount -fat nfs
-			fi
-			if (echo "$netmtab" | grep -q nfs4); then
-				run_cmd "Unmounting NFSv4 filesystems" umount -fat nfs4
+				run_cmd "Unmounting NFS filesystems" umount -fat nfs,nfs4
 			fi
 			if (echo "$netmtab" | grep -q smbfs); then
 				run_cmd "Unmounting SMB filesystems" umount -at smbfs


More information about the pld-cvs-commit mailing list