Magellan Linux

Annotation of /trunk/udev/config-udev-100-r1/udev-persistent-net-generator.rules.magellan

Parent Directory Parent Directory | Revision Log Revision Log


Revision 78 - (hide annotations) (download)
Wed Sep 20 14:31:30 2006 UTC (17 years, 9 months ago) by niro
File size: 1024 byte(s)
ver bump to 100-r1:
- added udev-cd-aliases-genrator.rules.magellan
- added udev-persistent-input.rules.magellan
- added udev-persistent-net-generator.rules.magellan
- added udev-persistent-storage.rules.magellan
- added seq_node.sh script

1 niro 78 # /etc/udev/rules/75-persistent-net-generator.rules: device naming rules for udev
2     # $Header: /root/magellan-cvs/src/udev/config-udev-100-r1/udev-persistent-net-generator.rules.magellan,v 1.1 2006-09-20 14:31:30 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