[arch-commits] Commit in hwdetect/trunk (hwdetect)

Tobias Powalowski tpowa at archlinux.org
Thu Aug 4 07:20:01 UTC 2011


    Date: Thursday, August 4, 2011 @ 03:20:01
  Author: tpowa
Revision: 134476

add persistent network rules

Modified:
  hwdetect/trunk/hwdetect

----------+
 hwdetect |   11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

Modified: hwdetect
===================================================================
--- hwdetect	2011-08-04 07:10:30 UTC (rev 134475)
+++ hwdetect	2011-08-04 07:20:01 UTC (rev 134476)
@@ -514,12 +514,11 @@
 				done
 				showlist2 "MODULES"  \($MODULES_EXPORTED\) | sed -e 's/(\ /(/g' -e 's/\ )/)/g' -e 's/\ \ /\ /g'
 			fi
-                        : >/tmp/blacklist_net.conf
-			if [ "$BLACKLIST" = "1" ]; then	
-				for i in $BLACKLIST_UDEV; do
-					echo "blacklist $i" >> /tmp/blacklist_net.conf
-				done
-                        fi
+                        : >/tmp/network_persistent.rules
+			for i in $(ls /sys/class/net/ | grep -v ^lo); do
+			      echo "SUBSYSTEM==\"net\", ATTR{address}=\"$(cat /sys/class/net/${i}/adress)\", NAME=\"${i}\"" >>/tmp/network_persistent.rules
+			done
+
 			;;
 		--sound) SOUND_EXPORTED="$(listmods pcspkr) $(listmods sound/)"
 			 MODULES_EXPORTED="$MODULES_EXPORTED $SOUND_EXPORTED"




More information about the arch-commits mailing list