ppcrcd/trunk/conf.dir/usr/lib/ppcrcd/net-detect

sparky cvs at pld-linux.org
Wed Mar 1 11:00:53 CET 2006


Author: sparky
Date: Wed Mar  1 11:00:51 2006
New Revision: 7058

Modified:
   ppcrcd/trunk/conf.dir/usr/lib/ppcrcd/net-detect
Log:
- fix "alias eth0 *" detection


Modified: ppcrcd/trunk/conf.dir/usr/lib/ppcrcd/net-detect
==============================================================================
--- ppcrcd/trunk/conf.dir/usr/lib/ppcrcd/net-detect	(original)
+++ ppcrcd/trunk/conf.dir/usr/lib/ppcrcd/net-detect	Wed Mar  1 11:00:51 2006
@@ -67,7 +67,7 @@
 		fi
 	fi
 	
-	if egrep -vq "^alias eth0" /etc/modprobe.conf; then
+	if ! egrep -q "^[[:space:]]*alias[[:space:]]*eth0" /etc/modprobe.conf; then
 		verbose 2 -B " +-Autodetecting network"
 		confnet $(/usr/bin/pcidev /m net | sed 's/$/:dhcp/')
 	fi


More information about the pld-cvs-commit mailing list