diff options
author | Kay Sievers <kay.sievers@suse.de> | 2005-11-10 01:07:51 +0100 |
---|---|---|
committer | Kay Sievers <kay.sievers@suse.de> | 2005-11-10 01:07:51 +0100 |
commit | efbd13e83863d834db1eb8b6f6301dede32f54fe (patch) | |
tree | 60a0af5aee3251f927e99882e3992cc696055b6e /etc/udev/suse/80-sysconfig.rules | |
parent | f054627f500450a7aadeaf8a9930354fb268718e (diff) |
update SUSE rules
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
Diffstat (limited to 'etc/udev/suse/80-sysconfig.rules')
-rw-r--r-- | etc/udev/suse/80-sysconfig.rules | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/etc/udev/suse/80-sysconfig.rules b/etc/udev/suse/80-sysconfig.rules new file mode 100644 index 0000000000..630c0eedfb --- /dev/null +++ b/etc/udev/suse/80-sysconfig.rules @@ -0,0 +1,20 @@ +ENV{SYSCONFIG}=="no|off|0", GOTO="sysconfig_end" + +# network devices +KERNEL=="tun", NAME="net/%k", MODE="0600" +SUBSYSTEM=="net", ACTION=="add", RUN+="/sbin/ifup $env{INTERFACE} -o hotplug" +SUBSYSTEM=="net", ACTION=="remove", RUN+="/sbin/ifdown %k -o hotplug" + +# SUSE system integration +SUBSYSTEM=="pci", ACTION=="add", RUN+="/sbin/hwup bus-pci-%k -o hotplug" +SUBSYSTEM=="usb", ACTION=="add", RUN+="/sbin/hwup usb-devpath-/sys%p -o hotplug" +SUBSYSTEM=="ieee1394", ACTION=="add", RUN+="/sbin/hwup ieee1394-devpath-/sys%p -o hotplug" +SUBSYSTEM=="scsi", DEVPATH=="/devices/css*", ACTION=="remove", RUN+="/sbin/hwdown scsi-devpath-/sys%p -o hotplug" +SUBSYSTEM=="scsi_host", ACTION=="add", SYSFS{device/cutype}=="*", RUN+="/sbin/hwup scsi__host-devpath-/sys%p -o hotplug" +SUBSYSTEM=="vio", ACTION=="add", RUN+="/sbin/hwup bus-macio-%k -o hotplug" +SUBSYSTEM=="macio", ACTION=="add", RUN+="/sbin/hwup bus-macio-%k -o hotplug" +SUBSYSTEM=="ccw", ACTION=="add", RUN+="/sbin/hwup ccw-devpath-/sys%p -o hotplug" +SUBSYSTEM=="ccwgroup", ACTION=="add", RUN+="/sbin/hwup ccwgroup-devpath-/sys%p -o hotplug" +SUBSYSTEM=="pnp", RUN+="/bin/sh -c 'while read id; do /sbin/modprobe pnp:d$$id; done < /sys$devpath/id'" + +LABEL="sysconfig_end" |