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

baggins baggins at pld-linux.org
Tue Mar 20 12:53:49 CET 2007


Author: baggins
Date: Tue Mar 20 12:53:49 2007
New Revision: 8388

Modified:
   rc-scripts/trunk/rc.d/init.d/network
Log:
- unmount NFSv4 filesystems


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 12:53:49 2007
@@ -224,10 +224,13 @@
 		then
 			/etc/rc.d/init.d/netfs stop
 		else
-			netmtab=$(awk '{ if ($3 ~ /^(nfs|smbfs|ncpfs|cifs)$/ ) print $3}' /proc/mounts)
+			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
+			fi
 			if (echo "$netmtab" | grep -q smbfs); then
 				run_cmd "Unmounting SMB filesystems" umount -at smbfs
 			fi


More information about the pld-cvs-commit mailing list