summaryrefslogtreecommitdiff
path: root/sysconf/vyatta-net.rules
blob: 31901b428bf8b8121c19fc0f0130b3b3d378428e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# These rules use vyatta_net_name to persistently name network interfaces
# per "hwid" association with the interface block of the vyatta config file.

ACTION!="add",				GOTO="vyatta_net_end"
SUBSYSTEM!="net",			GOTO="vyatta_net_end"

# ignore interfaces without a driver link like bridges and VLANs
KERNEL=="eth*|ath*|wlan*|ra*|sta*|ctc*|lcs*|hsi*", DRIVERS=="?*",\
	PROGRAM="vyatta_net_name %k $attr{address}", \
	NAME="%c"

LABEL="vyatta_net_end"