home *** CD-ROM | disk | FTP | other *** search
/ chilidog.highland.cc.ks.us / chilidog.highland.cc.ks.us.zip / chilidog.highland.cc.ks.us / backup / bradford.20110725.etc.tar.gz / bradford.20110725.etc.tar / etc / udev / rules.d / 31-network.rules < prev    next >
Text File  |  2007-12-19  |  1KB  |  29 lines

  1. # This rule creates udev rules in 30-net_persistent_names.rules to make network
  2. # interface names persistent. A network device will always get the same
  3. # interface name as the first time it was registered, unless you modify these
  4. # autogenerated rules manually.
  5. #
  6. # If you disable this rule creation you have to ensure manually that you have a
  7. # rule for every single interface.  
  8. #
  9. # Read /usr/share/doc/packages/sysconfig/README.Persistent_Interface_Names for
  10. # further information.
  11. #
  12. SUBSYSTEM=="net", ACTION=="add", ENV{RENAMED}!="yes", IMPORT="/lib/udev/rename_netiface %k"
  13.  
  14. # Driver module ipw3945 requires an userspace daemon to register network
  15. # interfaces. 
  16. SUBSYSTEM=="drivers", ACTION=="add", DEVPATH=="/bus/pci/drivers/ipw3945", RUN+="ipw3945d.sh"
  17. SUBSYSTEM=="net", ACTION=="remove", ENV{PHYSDEVDRIVER}=="ipw3945", RUN+="ipw3945d.sh --kill"
  18.  
  19. # Network interfaces will be set up automatically by ifup if they are configured
  20. # and service network is active.
  21. # We also call ifdown although the interface vanished already, because there
  22. # might be things to clean up. (E.g. killing ifplugd)
  23. # There are interfaces which are created with ifup. We have to ignore these
  24. # interfaces here.
  25. SUBSYSTEM=="net", ENV{INTERFACE}=="ppp*|ippp*|isdn*|plip*|lo*|irda*|dummy*|ipsec*|tun*|tap*|bond*|vlan*|modem*", GOTO="skip_ifup"
  26. SUBSYSTEM=="net", ACTION=="add", RUN+="/sbin/ifup $env{INTERFACE} -o hotplug"
  27. SUBSYSTEM=="net", ACTION=="remove", RUN+="/sbin/ifdown %k -o hotplug"
  28. LABEL="skip_ifup"
  29.