From 6317c213d0cffdf66faf644361877bf259aff756 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Thu, 15 Dec 2005 16:05:37 +0100 Subject: update SUSE rules Signed-off-by: Kay Sievers --- etc/udev/suse/05-udev-early.rules | 7 ++ etc/udev/suse/10-wait-for-sysfs.rules | 1 - etc/udev/suse/40-bluetooth.rules | 2 +- etc/udev/suse/50-udev-default.rules | 162 ++++++++++++++++++++++++++++++++ etc/udev/suse/50-udev.rules | 166 --------------------------------- etc/udev/suse/60-persistent-disk.rules | 48 ++++++++++ etc/udev/suse/60-persistent.rules | 48 ---------- etc/udev/suse/80-sysconfig.rules | 5 +- etc/udev/suse/95-debug.rules | 6 -- etc/udev/suse/95-udev-late.rules | 6 ++ 10 files changed, 227 insertions(+), 224 deletions(-) create mode 100644 etc/udev/suse/05-udev-early.rules delete mode 100644 etc/udev/suse/10-wait-for-sysfs.rules create mode 100644 etc/udev/suse/50-udev-default.rules delete mode 100644 etc/udev/suse/50-udev.rules create mode 100644 etc/udev/suse/60-persistent-disk.rules delete mode 100644 etc/udev/suse/60-persistent.rules delete mode 100644 etc/udev/suse/95-debug.rules create mode 100644 etc/udev/suse/95-udev-late.rules diff --git a/etc/udev/suse/05-udev-early.rules b/etc/udev/suse/05-udev-early.rules new file mode 100644 index 0000000000..ce159d56d3 --- /dev/null +++ b/etc/udev/suse/05-udev-early.rules @@ -0,0 +1,7 @@ +# sysfs is populated after the event is sent +ACTION=="add", DEVPATH=="/devices/*", ENV{PHYSDEVBUS}=="?*", WAIT_FOR_SYSFS="bus" + +# ignore these events until someone needs them +SUBSYSTEM=="drivers", OPTIONS="ignore_device" +SUBSYSTEM=="module", OPTIONS="ignore_device" + diff --git a/etc/udev/suse/10-wait-for-sysfs.rules b/etc/udev/suse/10-wait-for-sysfs.rules deleted file mode 100644 index 80c1781530..0000000000 --- a/etc/udev/suse/10-wait-for-sysfs.rules +++ /dev/null @@ -1 +0,0 @@ -ACTION=="add", DEVPATH=="/devices/*", ENV{PHYSDEVBUS}=="?*", WAIT_FOR_SYSFS="bus" diff --git a/etc/udev/suse/40-bluetooth.rules b/etc/udev/suse/40-bluetooth.rules index 7405d15b21..b6d706cabf 100644 --- a/etc/udev/suse/40-bluetooth.rules +++ b/etc/udev/suse/40-bluetooth.rules @@ -1,5 +1,5 @@ # bluetooth subsystem -SUBSYSTEM=="bluetooth", RUN+="/sbin/udev.bluetooth.sh" +SUBSYSTEM=="bluetooth", RUN+="/lib/udev/bluetooth.sh" # uncomment this if you have configured an automatic rfcomm-bind in # /etc/bluetooth/rfcomm.conf diff --git a/etc/udev/suse/50-udev-default.rules b/etc/udev/suse/50-udev-default.rules new file mode 100644 index 0000000000..09f197da23 --- /dev/null +++ b/etc/udev/suse/50-udev-default.rules @@ -0,0 +1,162 @@ +# console +KERNEL=="pty[pqrstuvwxyzabcdef][0123456789abcdef]", NAME="%k", GROUP="tty", MODE="666", OPTIONS="last_rule" +KERNEL=="tty[pqrstuvwxyzabcdef][0123456789abcdef]", NAME="%k", GROUP="tty", MODE="666", OPTIONS="last_rule" +KERNEL=="vcs*", NAME="%k", GROUP="tty", MODE="620", OPTIONS="last_rule" +KERNEL=="vcsa*", NAME="%k", GROUP="tty", MODE="620", OPTIONS="last_rule" +KERNEL=="tty", NAME="%k", GROUP="tty", MODE="666", OPTIONS="last_rule" +KERNEL=="tty[0-9]*", NAME="%k", GROUP="tty", MODE="620", OPTIONS="last_rule" +KERNEL=="console", NAME="%k", MODE="600", OPTIONS="last_rule" +KERNEL=="ptmx", NAME="%k", GROUP="tty", MODE="666", OPTIONS="last_rule" + +# serial devices +KERNEL=="tty[A-Z]*", NAME="%k", GROUP="uucp" +KERNEL=="pppox*", NAME="%k", GROUP="uucp" +KERNEL=="ircomm*", NAME="%k", GROUP="uucp" +KERNEL=="modems/mwave*", NAME="%k", GROUP="uucp" +KERNEL=="hvc*", NAME="%k", GROUP="uucp" +KERNEL=="hvsi*", NAME="%k", GROUP="uucp" +KERNEL=="iseries/vtty*", NAME="%k", GROUP="uucp" +KERNEL=="ttyUSB*", SYSFS{product}=="Palm Handheld*", SYMLINK+="pilot" + +# video/graphics +SUBSYSTEM=="video4linux", GROUP="video" +SUBSYSTEM=="graphics" GROUP="video" +KERNEL=="vtx*", NAME="%k", GROUP="video" +KERNEL=="vbi*", NAME="%k", GROUP="video" +KERNEL=="winradio*", NAME="%k", GROUP="video" +KERNEL=="vttuner*", NAME="%k", GROUP="video" +KERNEL=="nvidia*", NAME="%k", GROUP="video" +KERNEL=="nvidiactl*", NAME="%k", GROUP="video" +KERNEL=="video0", SYMLINK+="video" +KERNEL=="radio0", SYMLINK+="radio" +KERNEL=="vbi0", SYMLINK+="vbi" +KERNEL=="pmu", GROUP="video" + +# dvb +SUBSYSTEM=="dvb", PROGRAM="/bin/sh -c 'K=%k; K=$${K#dvb}; printf dvb/adapter%%i/%%i $${K%%%%.*} $${K#*.}'", NAME="%c", GROUP="video" + +# input devices +KERNEL=="mice", NAME="input/%k", MODE="0640" +KERNEL=="mouse*", NAME="input/%k", MODE="0640" +KERNEL=="event*", NAME="input/%k", MODE="0640" +KERNEL=="js*", NAME="input/%k", MODE="0644" +KERNEL=="ts*", NAME="input/%k", MODE="0600" +KERNEL=="uinput", NAME="input/%k", MODE="0600" +KERNEL=="lirc0", NAME="%k", SYMLINK+="lirc" +KERNEL=="input[0-9]*", ACTION=="add", RUN+="input.sh" + +# printer +SUBSYSTEM=="usb", KERNEL=="lp*", NAME="usb/%k", SYMLINK+="usb%k", GROUP="lp" +SUBSYSTEM=="printer", KERNEL=="lp*", NAME="%k", GROUP="lp" +KERNEL=="irlpt*", NAME="%k", GROUP="lp" + +# cpu devices +KERNEL=="cpu[0-9]*", NAME="cpu/%n/cpuid" +KERNEL=="msr[0-9]*", NAME="cpu/%n/msr" +KERNEL=="microcode", NAME="cpu/microcode", MODE="0600" + +# IEEE1394 devices +KERNEL=="raw1394*", NAME="%k", GROUP="video" +KERNEL=="dv1394*", NAME="%k", SYMLINK+="dv1394/%n", GROUP="video" +KERNEL=="video1394*", NAME="%k", SYMLINK+="video1394/%n", GROUP="video" + +# 183 = /dev/hwrng Generic random number generator +KERNEL=="hw_random", NAME="hwrng", SYMLINK+="%k" +# 219 /dev/modems/mwave MWave modem firmware upload +KERNEL=="mwave", NAME="modems/%k" +# 169 /dev/specialix_rioctl Specialix RIO serial control +KERNEL=="rioctl", NAME="specialix_rioctl", SYMLINK+="%k" +# 167 /dev/specialix_sxctl Specialix serial control +KERNEL=="sxctl", NAME="specialix_sxctl", SYMLINK+="%k" + +# network +KERNEL=="tun", NAME="net/%k", MODE="0600" + +# misc devices +KERNEL=="mem", NAME="%k", GROUP="kmem", MODE="640" +KERNEL=="kmem", NAME="%k", GROUP="kmem", MODE="640" +KERNEL=="port", NAME="%k", GROUP="kmem", MODE="640" +KERNEL=="nvram", NAME="%k", GROUP="kmem", MODE="600" +KERNEL=="null", NAME="%k", MODE="666" +KERNEL=="zero", NAME="%k", MODE="666" +KERNEL=="full", NAME="%k", MODE="622" +KERNEL=="random", NAME="%k", MODE="666" +KERNEL=="urandom", NAME="%k", MODE="644" +KERNEL=="rtc", GROUP="audio" +KERNEL=="sonypi", MODE="0666" +KERNEL=="agpgart", MODE="0600", GROUP="video" +KERNEL=="djs*", NAME="%k", MODE="644" +KERNEL=="sgi_*", NAME="%k", MODE="666" +KERNEL=="rrom*", NAME="%k", MODE="400" +KERNEL=="rflash*", NAME="%k", MODE="400" +KERNEL=="usbscanner*", NAME="%k", MODE="644" +KERNEL=="3270/ttycons*", NAME="%k", MODE="600" +KERNEL=="3270/tub*", NAME="%k", MODE="666" +KERNEL=="3270/tubcons*", NAME="%k", MODE="600" +KERNEL=="ica", NAME="%k", MODE="666" +KERNEL=="z90crypt", NAME="%k", MODE="666" +KERNEL=="mmtimer", NAME="%k", MODE="444" +KERNEL=="auer[0-9]*" NAME="usb/%k" + +# packet writing interface +KERNEL=="pktcdvd", NAME="pktcdvd/control" +KERNEL=="pktcdvd[0-9]*", NAME="pktcdvd/%k" + +# fix floppy devices +KERNEL=="nvram", ACTION=="add", RUN+="load_floppy_module.sh" +KERNEL=="fd[0-9]*", ACTION=="add", SYSFS{device/cmos}=="*", RUN+="create_floppy_devices -c -t $sysfs{device/cmos} -m %M /dev/%k" +KERNEL=="fd[0-9]*", ACTION=="remove", RUN+="/bin/rm -f $root/%k*" + +# block devices +SUBSYSTEM=="block", GROUP="disk", MODE="0640" + +# sd: 0 TYPE_DISK, 7 TYPE_MOD, 14 TYPE_RBC +# sr: 4 TYPE_WORM, 5 TYPE_ROM +# st/osst: 1 TYPE_TAPE +ACTION=="add", SUBSYSTEM="scsi" , SYSFS{type}=="0|7|14", RUN+="/bin/sh -c 'echo 60 > /sys/$DEVPATH/timeout'" +ACTION=="add", SUBSYSTEM="scsi" , SYSFS{type}=="1", RUN+="/bin/sh -c 'echo 900 > /sys/$DEVPATH/timeout'" +SUBSYSTEM=="scsi_device", ACTION=="add", SYSFS{device/type}=="0|7|14", RUN+="/sbin/modprobe sd_mod" +SUBSYSTEM=="scsi_device", ACTION=="add", SYSFS{device/type}=="1", SYSFS{device/vendor}=="On[sS]tream", RUN+="/sbin/modprobe osst" +SUBSYSTEM=="scsi_device", ACTION=="add", SYSFS{device/type}=="1", RUN+="/sbin/modprobe st" +SUBSYSTEM=="scsi_device", ACTION=="add", SYSFS{device/type}=="[45]", RUN+="/sbin/modprobe sr_mod" +SUBSYSTEM=="scsi_device", ACTION=="add", RUN+="/sbin/modprobe sg" + +# load IDE modules +SUBSYSTEM=="ide", ACTION=="add", RUN+="ide.sh" + +# device mapper +KERNEL=="device-mapper", NAME="%k", SYMLINK+="mapper/control" + +# check fstab and possibly mount +SUBSYSTEM=="block", ACTION=="add", KERNEL=="sd*[0-9]|hd*[0-9]", RUN+="mount.sh" + +# misc storage devices (non-block) +KERNEL=="sg*", NAME="%k", GROUP="disk", MODE="640" +KERNEL=="st*", NAME="%k", GROUP="disk" +KERNEL=="nst*", NAME="%k", GROUP="disk" +KERNEL=="initrd", NAME="%k", GROUP="disk" +KERNEL=="qft*", NAME="%k", GROUP="disk" +KERNEL=="nqft*", NAME="%k", GROUP="disk" +KERNEL=="zqft*", NAME="%k", GROUP="disk" +KERNEL=="nzqft*", NAME="%k", GROUP="disk" +KERNEL=="rawqft*", NAME="%k", GROUP="disk" +KERNEL=="nrawqft*", NAME="%k", GROUP="disk" +KERNEL=="pf*", NAME="%k", GROUP="disk" +KERNEL=="sch*", NAME="%k", GROUP="disk" +KERNEL=="pt*", NAME="%k", GROUP="disk" +KERNEL=="npt*", NAME="%k", GROUP="disk" +KERNEL=="pg*", NAME="%k", GROUP="disk" +KERNEL=="evms/block_device*", NAME="%k", GROUP="disk" +KERNEL=="rawctl*", NAME="%k", GROUP="disk" +KERNEL=="osst*", NAME="%k", GROUP="disk" +KERNEL=="nosst*", NAME="%k", GROUP="disk" +KERNEL=="iseries/vt*", NAME="%k", GROUP="disk" +KERNEL=="iseries/nvt*", NAME="%k", GROUP="disk" +KERNEL=="iseries/ibmsis*", NAME="%k", GROUP="disk" + +# libusb device access +SUBSYSTEM=="usb_device", PROGRAM="/bin/sh -c 'K=%k; K=$${K#usbdev}; printf bus/usb/%%03i/%%03i $${K%%%%.*} $${K#*.}'", NAME="%c", MODE="0644" + +# kernel firmware loader +SUBSYSTEM=="firmware", ACTION=="add", RUN+="firmware.sh" + diff --git a/etc/udev/suse/50-udev.rules b/etc/udev/suse/50-udev.rules deleted file mode 100644 index 51561ffd0f..0000000000 --- a/etc/udev/suse/50-udev.rules +++ /dev/null @@ -1,166 +0,0 @@ -# ignore these events until someone needs them -SUBSYSTEM=="drivers", OPTIONS="last_rule" -SUBSYSTEM=="module", OPTIONS="last_rule" - -# console -KERNEL=="pty[pqrstuvwxyzabcdef][0123456789abcdef]", NAME="%k", GROUP="tty", MODE="666", OPTIONS="last_rule" -KERNEL=="tty[pqrstuvwxyzabcdef][0123456789abcdef]", NAME="%k", GROUP="tty", MODE="666", OPTIONS="last_rule" -KERNEL=="vcs*", NAME="%k", GROUP="tty", MODE="620", OPTIONS="last_rule" -KERNEL=="vcsa*", NAME="%k", GROUP="tty", MODE="620", OPTIONS="last_rule" -KERNEL=="tty", NAME="%k", GROUP="tty", MODE="666", OPTIONS="last_rule" -KERNEL=="tty[0-9]*", NAME="%k", GROUP="tty", MODE="620", OPTIONS="last_rule" -KERNEL=="console", NAME="%k", MODE="600", OPTIONS="last_rule" -KERNEL=="ptmx", NAME="%k", GROUP="tty", MODE="666", OPTIONS="last_rule" - -# serial devices -KERNEL=="tty[A-Z]*", NAME="%k", GROUP="uucp" -KERNEL=="pppox*", NAME="%k", GROUP="uucp" -KERNEL=="ircomm*", NAME="%k", GROUP="uucp" -KERNEL=="modems/mwave*", NAME="%k", GROUP="uucp" -KERNEL=="hvc*", NAME="%k", GROUP="uucp" -KERNEL=="hvsi*", NAME="%k", GROUP="uucp" -KERNEL=="iseries/vtty*", NAME="%k", GROUP="uucp" -KERNEL=="ttyUSB*", SYSFS{product}=="Palm Handheld*", SYMLINK+="pilot" - -# video/graphics -SUBSYSTEM=="video4linux", GROUP="video" -SUBSYSTEM=="graphics" GROUP="video" -KERNEL=="vtx*", NAME="%k", GROUP="video" -KERNEL=="vbi*", NAME="%k", GROUP="video" -KERNEL=="winradio*", NAME="%k", GROUP="video" -KERNEL=="vttuner*", NAME="%k", GROUP="video" -KERNEL=="nvidia*", NAME="%k", GROUP="video" -KERNEL=="nvidiactl*", NAME="%k", GROUP="video" -KERNEL=="video0", SYMLINK+="video" -KERNEL=="radio0", SYMLINK+="radio" -KERNEL=="vbi0", SYMLINK+="vbi" -KERNEL=="pmu", GROUP="video" - -# dvb -SUBSYSTEM=="dvb", PROGRAM="/bin/sh -c 'K=%k; K=$${K#dvb}; printf dvb/adapter%%i/%%i $${K%%%%.*} $${K#*.}'", NAME="%c", GROUP="video" - -# Kino jogshuttle support -SUBSYSTEM=="usb", ACTION=="add", ENV{PRODUCT}=="b33/10/*", RUN+="/usr/bin/killall --quiet -USR2 kino" -SUBSYSTEM=="usb", ACTION=="add", ENV{PRODUCT}=="5f3/240/*", RUN+="/usr/bin/killall --quiet -USR2 kino" - -# input devices -KERNEL=="mice", NAME="input/%k", MODE="0640" -KERNEL=="mouse*", NAME="input/%k", MODE="0640" -KERNEL=="event*", NAME="input/%k", MODE="0640" -KERNEL=="js*", NAME="input/%k", MODE="0644" -KERNEL=="ts*", NAME="input/%k", MODE="0600" -KERNEL=="uinput", NAME="input/%k", MODE="0600" -KERNEL=="lirc0", NAME="%k", SYMLINK+="lirc" -KERNEL=="input[0-9]*", ACTION=="add", RUN+="/lib/udev/input.sh" - -# printer -SUBSYSTEM=="usb", KERNEL=="lp*", NAME="usb/%k", SYMLINK+="usb%k", GROUP="lp" -SUBSYSTEM=="printer", KERNEL=="lp*", NAME="%k", GROUP="lp" -KERNEL=="irlpt*", NAME="%k", GROUP="lp" - -# cpu devices -KERNEL=="cpu[0-9]*", NAME="cpu/%n/cpuid" -KERNEL=="msr[0-9]*", NAME="cpu/%n/msr" -KERNEL=="microcode", NAME="cpu/microcode", MODE="0600" - -# IEEE1394 devices -KERNEL=="raw1394*", NAME="%k", GROUP="video" -KERNEL=="dv1394*", NAME="%k", SYMLINK+="dv1394/%n", GROUP="video" -KERNEL=="video1394*", NAME="%k", SYMLINK+="video1394/%n", GROUP="video" - -# 183 = /dev/hwrng Generic random number generator -KERNEL=="hw_random", NAME="hwrng", SYMLINK+="%k" -# 219 /dev/modems/mwave MWave modem firmware upload -KERNEL=="mwave", NAME="modems/%k" -# 169 /dev/specialix_rioctl Specialix RIO serial control -KERNEL=="rioctl", NAME="specialix_rioctl", SYMLINK+="%k" -# 167 /dev/specialix_sxctl Specialix serial control -KERNEL=="sxctl", NAME="specialix_sxctl", SYMLINK+="%k" - -# misc devices -KERNEL=="mem", NAME="%k", GROUP="kmem", MODE="640" -KERNEL=="kmem", NAME="%k", GROUP="kmem", MODE="640" -KERNEL=="port", NAME="%k", GROUP="kmem", MODE="640" -KERNEL=="nvram", NAME="%k", GROUP="kmem", MODE="600" -KERNEL=="null", NAME="%k", MODE="666" -KERNEL=="zero", NAME="%k", MODE="666" -KERNEL=="full", NAME="%k", MODE="622" -KERNEL=="random", NAME="%k", MODE="666" -KERNEL=="urandom", NAME="%k", MODE="644" -KERNEL=="rtc", GROUP="audio" -KERNEL=="sonypi", MODE="0666" -KERNEL=="agpgart", MODE="0600", GROUP="video" -KERNEL=="djs*", NAME="%k", MODE="644" -KERNEL=="sgi_*", NAME="%k", MODE="666" -KERNEL=="rrom*", NAME="%k", MODE="400" -KERNEL=="rflash*", NAME="%k", MODE="400" -KERNEL=="usbscanner*", NAME="%k", MODE="644" -KERNEL=="3270/ttycons*", NAME="%k", MODE="600" -KERNEL=="3270/tub*", NAME="%k", MODE="666" -KERNEL=="3270/tubcons*", NAME="%k", MODE="600" -KERNEL=="ica", NAME="%k", MODE="666" -KERNEL=="z90crypt", NAME="%k", MODE="666" -KERNEL=="mmtimer", NAME="%k", MODE="444" -KERNEL=="auer[0-9]*" NAME="usb/%k" - -KERNEL=="pktcdvd", NAME="pktcdvd/control" -KERNEL=="pktcdvd[0-9]*", NAME="pktcdvd/%k" - -# fix floppy devices -KERNEL=="nvram", ACTION=="add", RUN+="/lib/udev/load_floppy_module.sh" -KERNEL=="fd*", ACTION=="add", SYSFS{device/cmos}=="*", RUN+="/lib/udev/create_floppy_devices -c -t $sysfs{device/cmos} -m %M /dev/%k" -KERNEL=="fd*", ACTION=="remove", RUN+="/lib/udev/remove_floppy_devices.sh %k" - -# block devices -SUBSYSTEM=="block", GROUP="disk", MODE="0640" - -# sd: 0 TYPE_DISK, 7 TYPE_MOD, 14 TYPE_RBC -# sr: 4 TYPE_WORM, 5 TYPE_ROM -# st/osst: 1 TYPE_TAPE -ACTION=="add", SUBSYSTEM="scsi" , SYSFS{type}=="0|7|14", RUN+="/bin/sh -c 'echo 60 > /sys/$DEVPATH/timeout'" -ACTION=="add", SUBSYSTEM="scsi" , SYSFS{type}=="1", RUN+="/bin/sh -c 'echo 900 > /sys/$DEVPATH/timeout'" -SUBSYSTEM=="scsi_device", ACTION=="add", SYSFS{device/type}=="0|7|14", RUN+="/sbin/modprobe sd_mod" -SUBSYSTEM=="scsi_device", ACTION=="add", SYSFS{device/type}=="1", SYSFS{device/vendor}=="On[sS]tream", RUN+="/sbin/modprobe osst" -SUBSYSTEM=="scsi_device", ACTION=="add", SYSFS{device/type}=="1", RUN+="/sbin/modprobe st" -SUBSYSTEM=="scsi_device", ACTION=="add", SYSFS{device/type}=="[45]", RUN+="/sbin/modprobe sr_mod" -SUBSYSTEM=="scsi_device", ACTION=="add", RUN+="/sbin/modprobe sg" - -# IDE modules -SUBSYSTEM=="ide", ACTION=="add", RUN+="/lib/udev/ide.sh" - -# device mapper -KERNEL=="device-mapper", ACTION=="add", NAME="%k", SYMLINK+="mapper/control" - -# check fstab and possibly mount -SUBSYSTEM=="block", KERNEL=="sd*[0-9]|hd*[0-9]", ACTION=="add", RUN+="/lib/udev/mount.sh" - -# misc storage devices (non-block) -KERNEL=="sg*", NAME="%k", GROUP="disk", MODE="640" -KERNEL=="st*", NAME="%k", GROUP="disk" -KERNEL=="nst*", NAME="%k", GROUP="disk" -KERNEL=="initrd", NAME="%k", GROUP="disk" -KERNEL=="qft*", NAME="%k", GROUP="disk" -KERNEL=="nqft*", NAME="%k", GROUP="disk" -KERNEL=="zqft*", NAME="%k", GROUP="disk" -KERNEL=="nzqft*", NAME="%k", GROUP="disk" -KERNEL=="rawqft*", NAME="%k", GROUP="disk" -KERNEL=="nrawqft*", NAME="%k", GROUP="disk" -KERNEL=="pf*", NAME="%k", GROUP="disk" -KERNEL=="sch*", NAME="%k", GROUP="disk" -KERNEL=="pt*", NAME="%k", GROUP="disk" -KERNEL=="npt*", NAME="%k", GROUP="disk" -KERNEL=="pg*", NAME="%k", GROUP="disk" -KERNEL=="evms/block_device*", NAME="%k", GROUP="disk" -KERNEL=="rawctl*", NAME="%k", GROUP="disk" -KERNEL=="osst*", NAME="%k", GROUP="disk" -KERNEL=="nosst*", NAME="%k", GROUP="disk" -KERNEL=="iseries/vt*", NAME="%k", GROUP="disk" -KERNEL=="iseries/nvt*", NAME="%k", GROUP="disk" -KERNEL=="iseries/ibmsis*", NAME="%k", GROUP="disk" - -# libusb device access -SUBSYSTEM=="usb_device", PROGRAM="/bin/sh -c 'K=%k; K=$${K#usbdev}; printf bus/usb/%%03i/%%03i $${K%%%%.*} $${K#*.}'", NAME="%c", MODE="0644" - -# firmware loader -SUBSYSTEM=="firmware", ACTION=="add", RUN+="/lib/udev/firmware.sh" - diff --git a/etc/udev/suse/60-persistent-disk.rules b/etc/udev/suse/60-persistent-disk.rules new file mode 100644 index 0000000000..3515bb189d --- /dev/null +++ b/etc/udev/suse/60-persistent-disk.rules @@ -0,0 +1,48 @@ +# persistent disk links: /dev/disk/{by-id,by-uuid,by-label,by-path} +# scheme based on "Linux persistent device names", 2004, Hannes Reinecke + +ACTION!="add", GOTO="persistent_end" +SUBSYSTEM!="block", GOTO="persistent_end" + +# skip rules for inappropriate block devices +KERNEL=="ram*|loop*|fd*|nbd*", GOTO="persistent_end" + +# never access removable ide devices, the drivers are causing event loops on open() +BUS=="ide", DRIVER!="ide-cdrom", SYSFS{removable}="1", GOTO="persistent_end" + +# by-id (hardware serial number) +KERNEL=="hd*[!0-9]", IMPORT{program}="/sbin/ata_id --export $tempnode" +KERNEL=="hd*[!0-9]", ENV{ID_SERIAL}=="?*", SYMLINK+="disk/by-id/ata-$env{ID_MODEL}_$env{ID_SERIAL}" +KERNEL=="hd*[0-9]", IMPORT{parent}=="ID_*", SYMLINK+="disk/by-id/ata-$env{ID_MODEL}_$env{ID_SERIAL}-part%n" + +KERNEL=="sd*[!0-9]|sr*", SYSFS{ieee1394_id}=="*", ENV{ID_SERIAL}="$sysfs{ieee1394_id}", ENV{ID_BUS}="ieee1394" +KERNEL=="sd*[!0-9]|sr*", ENV{ID_SERIAL}=="", IMPORT{program}="/sbin/usb_id -x" +KERNEL=="sd*[!0-9]|sr*", ENV{ID_SERIAL}=="", IMPORT{program}="/sbin/scsi_id -g -x -s %p -d $tempnode" +KERNEL=="sd*[!0-9]|sr*", ENV{ID_SERIAL}=="", IMPORT{program}="/sbin/scsi_id -g -x -a -s %p -d $tempnode" +KERNEL=="dasd*[!0-9]", IMPORT{program}="/sbin/dasd_id --export $tempnode" +KERNEL=="sd*[!0-9]|sr*|dasd*[!0-9]", ENV{ID_SERIAL}=="?*", SYMLINK+="disk/by-id/$env{ID_BUS}-$env{ID_SERIAL}" + +# for partitions import parent information +KERNEL=="sd*[0-9]|dasd*[0-9]", IMPORT{parent}=="ID_*" +KERNEL=="sd*[0-9]|dasd*[0-9]", ENV{ID_SERIAL}=="?*", SYMLINK+="disk/by-id/$env{ID_BUS}-$env{ID_SERIAL}-part%n" + +# by-path (shortest physical path) +KERNEL=="*[!0-9]|sr*", ENV{ID_TYPE}=="?*", IMPORT{program}="/sbin/path_id %p", SYMLINK+="disk/by-path/$env{ID_PATH}" +KERNEL=="sr*", GOTO="persistent_end" +KERNEL=="*[0-9]", IMPORT{parent}=="ID_*" +KERNEL=="*[0-9]", ENV{ID_PATH}=="?*", SYMLINK+="disk/by-path/$env{ID_PATH}-part%n" + +# by-label/by-uuid (filesystem properties) +KERNEL=="*[!0-9]", SYSFS{removable}=="1", GOTO="persistent_end" +IMPORT{program}="/sbin/vol_id --export $tempnode" +ENV{ID_FS_UUID}=="?*", SYMLINK+="disk/by-uuid/$env{ID_FS_UUID}" +ENV{ID_FS_LABEL_SAFE}=="?*", SYMLINK+="disk/by-label/$env{ID_FS_LABEL_SAFE}" + +# BIOS Enhanced Disk Device +KERNEL=="*[!0-9]", IMPORT{program}="/sbin/edd_id --export $tempnode" +KERNEL=="*[!0-9]", ENV{ID_EDD}=="?*", SYMLINK+="disk/by-id/edd-$env{ID_EDD}" +KERNEL=="*[0-9]", ENV{ID_EDD}=="?*", SYMLINK+="disk/by-id/edd-$env{ID_EDD}-part%n" + +KERNEL=="dm-[0-9]*", ACTION=="add", PROGRAM="/sbin/dmsetup info -c --noopencount --noheadings -o name -j %M -m %m", SYMLINK="disk/by-name/%c" + +LABEL="persistent_end" diff --git a/etc/udev/suse/60-persistent.rules b/etc/udev/suse/60-persistent.rules deleted file mode 100644 index 0d24a29338..0000000000 --- a/etc/udev/suse/60-persistent.rules +++ /dev/null @@ -1,48 +0,0 @@ -# persistent disk links: /dev/disk/{by-id,by-uuid,by-label,by-path} -# scheme based on "Linux persistent device names", 2004, Hannes Reinecke - -ACTION!="add", GOTO="persistent_end" -SUBSYSTEM!="block", GOTO="persistent_end" - -# skip rules for inappropriate block devices -KERNEL=="ram*|loop*|fd*|nbd*", GOTO="persistent_end" - -# never access removable ide devices, the drivers are causing event loops on open() -BUS=="ide", DRIVER!="ide-cdrom", SYSFS{removable}="1", GOTO="persistent_end" - -# by-id (hardware serial number) -KERNEL=="hd*[!0-9]", IMPORT{program}="/sbin/ata_id --export $tempnode" -KERNEL=="hd*[!0-9]", ENV{ID_SERIAL}=="?*", SYMLINK+="disk/by-id/ata-$env{ID_MODEL}_$env{ID_SERIAL}" -KERNEL=="hd*[0-9]", IMPORT{parent}=="ID_*", SYMLINK+="disk/by-id/ata-$env{ID_MODEL}_$env{ID_SERIAL}-part%n" - -KERNEL=="sd*[!0-9]|sr*", SYSFS{ieee1394_id}=="*", ENV{ID_SERIAL}="$sysfs{ieee1394_id}", ENV{ID_BUS}="ieee1394" -KERNEL=="sd*[!0-9]|sr*", ENV{ID_SERIAL}=="", IMPORT{program}="/sbin/usb_id -x" -KERNEL=="sd*[!0-9]|sr*", ENV{ID_SERIAL}=="", IMPORT{program}="/sbin/scsi_id -g -x -s %p -d $tempnode" -KERNEL=="sd*[!0-9]|sr*", ENV{ID_SERIAL}=="", IMPORT{program}="/sbin/scsi_id -g -x -a -s %p -d $tempnode" -KERNEL=="dasd*[!0-9]", IMPORT{program}="/sbin/dasd_id --export $tempnode" -KERNEL=="sd*[!0-9]|sr*|dasd*[!0-9]", ENV{ID_SERIAL}=="?*", SYMLINK+="disk/by-id/$env{ID_BUS}-$env{ID_SERIAL}" - -# for partitions import parent information -KERNEL=="sd*[0-9]|dasd*[0-9]", IMPORT{parent}=="ID_*" -KERNEL=="sd*[0-9]|dasd*[0-9]", ENV{ID_SERIAL}=="?*", SYMLINK+="disk/by-id/$env{ID_BUS}-$env{ID_SERIAL}-part%n" - -# by-path (shortest physical path) -KERNEL=="*[!0-9]|sr*", ENV{ID_TYPE}=="?*", IMPORT{program}="/sbin/path_id %p", SYMLINK+="disk/by-path/$env{ID_PATH}" -KERNEL=="sr*", GOTO="persistent_end" -KERNEL=="*[0-9]", IMPORT{parent}=="ID_*" -KERNEL=="*[0-9]", ENV{ID_PATH}=="?*", SYMLINK+="disk/by-path/$env{ID_PATH}-part%n" - -# by-label/by-uuid (filesystem properties) -KERNEL=="*[!0-9]", SYSFS{removable}=="1", GOTO="persistent_end" -IMPORT{program}="/sbin/vol_id --export $tempnode" -ENV{ID_FS_UUID}=="?*", SYMLINK+="disk/by-uuid/$env{ID_FS_UUID}" -ENV{ID_FS_LABEL_SAFE}=="?*", SYMLINK+="disk/by-label/$env{ID_FS_LABEL_SAFE}" - -# BIOS Enhanced Disk Device -KERNEL=="*[!0-9]", IMPORT{program}="/sbin/edd_id --export $tempnode" -KERNEL=="*[!0-9]", ENV{ID_EDD}=="?*", SYMLINK+="disk/by-id/edd-$env{ID_EDD}" -KERNEL=="*[0-9]", ENV{ID_EDD}=="?*", SYMLINK+="disk/by-id/edd-$env{ID_EDD}-part%n" - -KERNEL=="dm-[0-9]*", ACTION=="add", PROGRAM="/sbin/dmsetup info -c --noheadings -o name -j %M -m %m", SYMLINK="disk/by-name/%c" - -LABEL="persistent_end" diff --git a/etc/udev/suse/80-sysconfig.rules b/etc/udev/suse/80-sysconfig.rules index d33d975b36..7073813c61 100644 --- a/etc/udev/suse/80-sysconfig.rules +++ b/etc/udev/suse/80-sysconfig.rules @@ -1,7 +1,6 @@ ENV{SYSCONFIG}=="no|off|0", GOTO="sysconfig_end" -# network devices -KERNEL=="tun", NAME="net/%k", MODE="0600" +# SUSE network device handling SUBSYSTEM=="net", ACTION=="add", RUN+="/sbin/ifup $env{INTERFACE} -o hotplug" SUBSYSTEM=="net", ACTION=="remove", RUN+="/sbin/ifdown %k -o hotplug" @@ -16,5 +15,7 @@ SUBSYSTEM=="macio", ACTION=="add", RUN+="/sbin/hwup bus-macio-%k -o hotplug" SUBSYSTEM=="ccw", ACTION=="add", RUN+="/sbin/hwup ccw-devpath-%p -o hotplug" SUBSYSTEM=="ccwgroup", ACTION=="add", RUN+="/sbin/hwup ccwgroup-devpath-%p -o hotplug" SUBSYSTEM=="pnp", ACTION=="add", RUN+="/sbin/hwup pnp-devpath-%p -o hotplug" +#SUBSYSTEM=="ide", ACTION=="add", RUN+="/sbin/hwup ide-devpath-%p -o hotplug" +#SUBSYSTEM=="input", KERNEL=="input[0-9]*", ACTION=="add", RUN+="/sbin/hwup input-devpath-%p -o hotplug" LABEL="sysconfig_end" diff --git a/etc/udev/suse/95-debug.rules b/etc/udev/suse/95-debug.rules deleted file mode 100644 index 280287c1a7..0000000000 --- a/etc/udev/suse/95-debug.rules +++ /dev/null @@ -1,6 +0,0 @@ -# debug events to /events, but not on default udev_log="err" -ENV{UDEV_LOG}=="[4-9]", RUN+="/lib/udev/eventrecorder.sh" - -# event to be catched by udevmonitor -RUN+="socket:/org/kernel/udev/monitor" - diff --git a/etc/udev/suse/95-udev-late.rules b/etc/udev/suse/95-udev-late.rules new file mode 100644 index 0000000000..81331ad6b7 --- /dev/null +++ b/etc/udev/suse/95-udev-late.rules @@ -0,0 +1,6 @@ +# debug events to /events, but not on default udev_log="err" +ENV{UDEV_LOG}=="[4-9]", RUN+="eventrecorder.sh" + +# event to be catched by udevmonitor +RUN+="socket:/org/kernel/udev/monitor" + -- cgit v1.2.3-54-g00ecf