chiark / gitweb /
udev: fix net name rules matches
authorKay Sievers <kay@vrfy.org>
Sun, 6 Jan 2013 16:05:10 +0000 (17:05 +0100)
committerKay Sievers <kay@vrfy.org>
Sun, 6 Jan 2013 16:05:10 +0000 (17:05 +0100)
rules/80-net-name-slot.rules

index 278e77f..2834e82 100644 (file)
@@ -4,8 +4,8 @@ ACTION=="remove", GOTO="net_name_slot_end"
 SUBSYSTEM!="net", GOTO="net_name_slot_end"
 NAME!="", GOTO="net_name_slot_end"
 
-ENV{ID_NET_NAME_ONBOARD}!="", NAME="$env{ID_NET_NAME_ONBOARD}"
-ENV{ID_NET_NAME_SLOT}!="", NAME="$env{ID_NET_NAME_SLOT}"
-ENV{ID_NET_NAME_PATH}!="", NAME="$env{ID_NET_NAME_PATH}"
+NAME=="", ENV{ID_NET_NAME_ONBOARD}!="", NAME="$env{ID_NET_NAME_ONBOARD}"
+NAME=="", ENV{ID_NET_NAME_SLOT}!="", NAME="$env{ID_NET_NAME_SLOT}"
+NAME=="", ENV{ID_NET_NAME_PATH}!="", NAME="$env{ID_NET_NAME_PATH}"
 
 LABEL="net_name_slot_end"