Contents of /trunk/udev/config-udev-103-r1/udev-persistent-net-generator.rules.magellan
Parent Directory | Revision Log
Revision 84 -
(show annotations)
(download)
Tue Oct 31 10:47:04 2006 UTC (17 years, 10 months ago) by niro
File size: 1024 byte(s)
Tue Oct 31 10:47:04 2006 UTC (17 years, 10 months ago) by niro
File size: 1024 byte(s)
udev-103-r1 configs
1 | # /etc/udev/rules/75-persistent-net-generator.rules: device naming rules for udev |
2 | # $Header: /root/magellan-cvs/src/udev/config-udev-103-r1/udev-persistent-net-generator.rules.magellan,v 1.1 2006-10-31 10:47:04 niro Exp $ |
3 | |
4 | # these rules generate rules for persistent network device naming |
5 | |
6 | ACTION=="add", SUBSYSTEM=="net", NAME!="?*", DRIVERS=="?*", GOTO="persistent_net_generator_do" |
7 | GOTO="persistent_net_generator_end" |
8 | |
9 | LABEL="persistent_net_generator_do" |
10 | # export device description to comment the generated rule |
11 | SUBSYSTEMS=="pci", ENV{COMMENT}="PCI Device: $attr{vendor}:$attr{device} ($attr{driver})" |
12 | SUBSYSTEMS=="usb", ENV{COMMENT}="USB Device: 0x$attr{idVendor}:0x$attr{idProduct} ($attr{driver})" |
13 | SUBSYSTEMS=="ieee1394", ENV{COMMENT}="Firewire Device: $attr{host_id} ($attr{driver})" |
14 | SUBSYSTEMS=="xen", ENV{COMMENT}="Xen virtual device" |
15 | |
16 | KERNEL=="eth*|ath*|wlan*|ra*|sta*", IMPORT{program}="write_net_rules $attr{address}" |
17 | ENV{INTERFACE_NEW}=="?*", NAME="$env{INTERFACE_NEW}" |
18 | |
19 | LABEL="persistent_net_generator_end" |
20 |