Magellan Linux

Contents of /trunk/udev/config-udev-103-r4/udev-persistent-net-generator.rules.magellan

Parent Directory Parent Directory | Revision Log Revision Log


Revision 90 - (show annotations) (download)
Tue Dec 26 13:30:46 2006 UTC (17 years, 4 months ago) by niro
File size: 1024 byte(s)
import

1 # /etc/udev/rules/75-persistent-net-generator.rules: device naming rules for udev
2 # $Header: /root/magellan-cvs/src/udev/config-udev-103-r4/udev-persistent-net-generator.rules.magellan,v 1.1 2006-12-26 13:30:46 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