ATTRS{type} matching in 70-persistent-net.rules
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
udev (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: udev
In case one is using hostapd, the automatic persistent-net generation is wrong in that it makes the rename rules match with ATTRS{type}=="1". While this measure is effective against matching the wifi* interfaces, /lib/udev/
--- write_net_rules.old 2008-02-07 01:13:31.000000000 +0100
+++ write_net_rules 2008-02-07 01:13:16.000000000 +0100
@@ -119,7 +119,7 @@
# the DRIVERS key is needed to not match bridges and VLAN sub-interfaces
match=
if [ $basename = "ath" -o $basename = "wlan" ]; then
- match="$match, ATTRS{type}==\"1\"" # do not match the wifi* interfaces
+ match="$match, ATTRS{type}
fi
write_rule "$match" "$INTERFACE" "$COMMENT"
Hmmm... apparently this is not the right solution, as the wifi0 interface gets renamed wlan0ap too. :(
It should be checked whether the type is 1 before writing the rule at all.