chiark / gitweb /
man: recreate man pages
[elogind.git] / extras / rule_generator / write_net_rules
index b873b5bf8c5d68e2b9e351f41fad2a7089519917..62acb8820ce75ff1477866be634c7d1d2b8cccff 100644 (file)
@@ -115,12 +115,12 @@ fi
 
 # the DRIVERS key is needed to not match bridges and VLAN sub-interfaces
 if [ "$MAC_ADDR" ] ; then
-    match="DRIVERS==\"?*\", ATTRS{address}==\"$MAC_ADDR\""
+    match="DRIVERS==\"?*\", ATTR{address}==\"$MAC_ADDR\""
 else
     match="DRIVERS==\"$DRIVER\", KERNELS==\"$ID\""
 fi
 if [ $basename = "ath" -o $basename = "wlan" ]; then
-       match="$match, ATTRS{type}==\"1\"" # do not match the wifi* interfaces
+       match="$match, ATTR{type}==\"1\"" # do not match the wifi* interfaces
 fi
 
 write_rule "$match" "$INTERFACE" "$COMMENT"