summaryrefslogtreecommitdiffstats
path: root/abs/core/udev/81-LinHES.rules
diff options
context:
space:
mode:
authorMichael Hanson <mihanson@linhes.org>2012-01-25 23:46:30 (GMT)
committerMichael Hanson <mihanson@linhes.org>2012-01-25 23:46:30 (GMT)
commit70aa1658649b701402c54728ed13ea3228ec4862 (patch)
tree65f09c46035328d32ac1a41e371d15f1aa213c6a /abs/core/udev/81-LinHES.rules
parent6a019dc07b35afed0f44cc77410cd133d3f3f809 (diff)
downloadlinhes_pkgbuild-70aa1658649b701402c54728ed13ea3228ec4862.zip
linhes_pkgbuild-70aa1658649b701402c54728ed13ea3228ec4862.tar.gz
linhes_pkgbuild-70aa1658649b701402c54728ed13ea3228ec4862.tar.bz2
Revert "udev: add 81-dvicoIR.rules; move 81-LinHES.rules to more descriptive filenames."
This reverts commit 98f897a6b29ef9f3a9c88a0e4d2cf49d5188b6fb.
Diffstat (limited to 'abs/core/udev/81-LinHES.rules')
-rw-r--r--abs/core/udev/81-LinHES.rules42
1 files changed, 42 insertions, 0 deletions
diff --git a/abs/core/udev/81-LinHES.rules b/abs/core/udev/81-LinHES.rules
new file mode 100644
index 0000000..112c46d
--- /dev/null
+++ b/abs/core/udev/81-LinHES.rules
@@ -0,0 +1,42 @@
+# Udev rules for LinHES
+# do not edit this file, it will be overwritten on update
+#
+# There are a number of modifiers that are allowed to be used in some
+# of the different fields. They provide the following subsitutions:
+#
+# %n the "kernel number" of the device.
+# For example, 'sda3' has a "kernel number" of '3'
+# %k the kernel name for the device.
+# %M the kernel major number for the device
+# %m the kernel minor number for the device
+# %b the bus id for the device
+# %c the string returned by the PROGRAM
+# %s{filename} the content of a sysfs attribute.
+# %% the '%' char itself.
+#
+# There are a number of modifiers that are allowed to be used in some of the
+# fields. See the udev man page for a full description of them.
+
+# OSS Emulation SOUND addon modules
+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
+#####################################