summaryrefslogtreecommitdiffstats
path: root/abs/core/udev/81-LinHES.rules
diff options
context:
space:
mode:
authorMichael Hanson <hansonorders@verizon.net>2011-08-09 23:22:41 (GMT)
committerMichael Hanson <hansonorders@verizon.net>2011-08-09 23:22:41 (GMT)
commit12bdea7405a02ec316e92fa2684d89cd721f8520 (patch)
treeea7382237e67819c7b0c674f1e6bb08a4f8c5e26 /abs/core/udev/81-LinHES.rules
parent631f3dc4b6c2de23cbdf151aad88cbbb824039be (diff)
parentc59e88df3414c0111ba3a10fd7740d4b4f6bb798 (diff)
downloadlinhes_pkgbuild-12bdea7405a02ec316e92fa2684d89cd721f8520.zip
linhes_pkgbuild-12bdea7405a02ec316e92fa2684d89cd721f8520.tar.gz
linhes_pkgbuild-12bdea7405a02ec316e92fa2684d89cd721f8520.tar.bz2
Merge branch 'testing' of knoppmyth.net:linhes_pkgbuild into testing
Diffstat (limited to 'abs/core/udev/81-LinHES.rules')
-rw-r--r--abs/core/udev/81-LinHES.rules19
1 files changed, 19 insertions, 0 deletions
diff --git a/abs/core/udev/81-LinHES.rules b/abs/core/udev/81-LinHES.rules
index 5e324d1..112c46d 100644
--- a/abs/core/udev/81-LinHES.rules
+++ b/abs/core/udev/81-LinHES.rules
@@ -21,3 +21,22 @@
SUBSYSTEM=="sound", RUN+="/sbin/modprobe snd-pcm-oss"
SUBSYSTEM=="sound", RUN+="/sbin/modprobe snd-seq-oss"
+#####################################
+###### CD/DVD symlinks - begin
+#####################################
+ACTION=="add|change", SUBSYSTEMS=="ide", KERNEL=="hd[a-z]", IMPORT="cdrom_id --export $tempnode"
+ACTION=="add|change", SUBSYSTEMS=="scsi", KERNEL=="sr[0-9]*", IMPORT="cdrom_id --export $tempnode"
+ACTION=="add|change", SUBSYSTEMS=="scsi", KERNEL=="scd[a-z]", IMPORT="cdrom_id --export $tempnode"
+ENV{ID_CDROM}=="?*", SYMLINK+="cd/cdrom-%b"
+ENV{ID_CDROM_CD_RW}=="?*", SYMLINK+="cd/cdrw-%b"
+ENV{ID_CDROM_DVD}=="?*", SYMLINK+="cd/dvd-%b"
+ENV{ID_CDROM_DVD_R}=="?*", SYMLINK+="cd/dvdrw-%b"
+ACTION=="add|change", SUBSYSTEMS=="ide", KERNEL=="hd[a-z]", ATTR{removable}=="1", ATTRS{media}=="cdrom*", RUN+="cdsymlinks.sh"
+ACTION=="add|change", SUBSYSTEMS=="scsi", KERNEL=="sr[0-9]*", ATTRS{type}=="5", RUN+="cdsymlinks.sh"
+ACTION=="add|change", SUBSYSTEMS=="scsi", KERNEL=="sg[0-9]*", ATTRS{type}=="5", RUN+="cdsymlinks.sh"
+ACTION=="remove", SUBSYSTEMS=="block", KERNEL=="hd[a-z]", RUN+="cdsymlinks.sh"
+ACTION=="remove", SUBSYSTEMS=="block", KERNEL=="sr[0-9]*", RUN+="cdsymlinks.sh"
+ACTION=="remove", SUBSYSTEMS=="block", KERNEL=="sg[0-9]*", RUN+="cdsymlinks.sh"
+#####################################
+###### CD/DVD symlinks - end
+#####################################