Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 121 - (show annotations) (download)
Wed Mar 21 16:48:37 2007 UTC (17 years, 1 month ago) by niro
File size: 1074 byte(s)
- moved to udev root. manage versions with tags now

1 # /etc/udev/rules/75-persistent-net-generator.rules: device naming rules for udev
2 # $Header: /root/magellan-cvs/src/udev/udev-persistent-net-generator.rules.magellan,v 1.1 2007-03-21 16:48: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