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

baggins cvs at pld-linux.org
Thu Aug 10 14:14:15 CEST 2006


Author: baggins
Date: Thu Aug 10 14:14:14 2006
New Revision: 7656

Modified:
   rc-scripts/trunk/rc.d/init.d/network
Log:
- check for /usb/bin/wc existence (in case of /usr over NFS)


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	Thu Aug 10 14:14:14 2006
@@ -57,7 +57,7 @@
 	modprobe_net
 
 	# Setup interfaces names
-	if [ -x /sbin/nameif -a -f /etc/mactab ] && [ $(egrep -vs '^(#| *$)' /etc/mactab | wc -l) -gt 0 ]; then
+	if [ -x /sbin/nameif -a -f /etc/mactab -a -x /usb/bin/wc ] && [ $(egrep -vs '^(#| *$)' /etc/mactab | wc -l) -gt 0 ]; then
 		run_cmd "Setting interfaces names (nameif)" /sbin/nameif
 	fi
 


More information about the pld-cvs-commit mailing list