# These rules use vyatta_net_name to persistently name network interfaces # per "hwid" association in the Vyatta configuration file. ACTION!="add", GOTO="vyatta_net_end" SUBSYSTEM!="net", GOTO="vyatta_net_end" # ignore the interface if a name has already been set NAME=="?*", GOTO="vyatta_net_end" # Do name change for ethernet and wireless devices only KERNEL=="eth*|wlan*", PROGRAM="vyatta_net_name %k $attr{address}", NAME="%c" LABEL="vyatta_net_end"