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