summaryrefslogtreecommitdiff
path: root/rules/redhat
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2008-07-18 15:56:03 +0200
committerKay Sievers <kay.sievers@vrfy.org>2008-07-18 15:56:03 +0200
commit282988c4f8a85c28468e6442e86efe51dc71cc93 (patch)
treefda0a6ba62adffd8f7c4762b9694ab77e4ea563f /rules/redhat
parent41dd741442ab496901c38f6cd38404bd954f1857 (diff)
move default rules from /etc/udev/rules.d/ to /lib/udev/rules.d/
None of these rules is supposed to be changed by users, so move them out of /etc. Custom rules, and automatically generated rules stay in /etc. All rules are still processed in lexical order, regardless which directory they live in.
Diffstat (limited to 'rules/redhat')
-rw-r--r--rules/redhat/40-redhat.rules25
-rw-r--r--rules/redhat/95-pam-console.rules1
2 files changed, 26 insertions, 0 deletions
diff --git a/rules/redhat/40-redhat.rules b/rules/redhat/40-redhat.rules
new file mode 100644
index 0000000000..446cc6d1d5
--- /dev/null
+++ b/rules/redhat/40-redhat.rules
@@ -0,0 +1,25 @@
+# do not edit this file, it will be overwritten on update
+
+KERNEL=="hd*[!0-9]", SUBSYSTEMS=="ide", ATTRS{media}=="floppy", SYMLINK+="floppy floppy-%k", OPTIONS+="ignore_remove"
+KERNEL=="hd*[0-9]", ATTRS{media}=="floppy", ATTRS{removable}=="1", SYMLINK+="floppy-%k", OPTIONS+="ignore_remove"
+
+KERNEL=="fw*", PROGRAM="fw_unit_symlinks.sh %k %n", SYMLINK+="$result"
+
+ACTION=="add", KERNEL=="sg[0-9]*", BUS=="scsi", ATTRS{type}=="3|6", SYMLINK+="scanner scanner-%k", MODE="0660"
+
+ACTION=="add", KERNEL=="sg[0-9]*", BUS=="scsi", ATTRS{type}=="8", SYMLINK+="changer changer-%k", MODE="0660", GROUP="disk"
+
+BUS=="usb", KERNEL=="sd*", ATTRS{bInterfaceClass}=="08", ATTRS{bInterfaceSubClass}=="04", GROUP="floppy", MODE="0660", SYMLINK+="floppy floppy-%k"
+
+KERNEL=="fd[0-9]*", SYMLINK+="floppy floppy-%k"
+
+ACTION=="add", SUBSYSTEM=="scsi_device", ATTRS{type}=="0|7|14", \
+ RUN+="/sbin/modprobe sd_mod"
+ACTION=="add", SUBSYSTEM=="scsi_device", ATTRS{type}=="[45]", \
+ RUN+="/sbin/modprobe sr_mod"
+
+KERNEL=="vcs", OWNER="vcsa", GROUP="tty"
+KERNEL=="vcs[0-9]*", OWNER="vcsa", GROUP="tty"
+KERNEL=="vcsa", OWNER="vcsa", GROUP="tty"
+KERNEL=="vcsa[0-9]*", OWNER="vcsa", GROUP="tty"
+KERNEL=="vcc/*", OWNER="vcsa", GROUP="tty"
diff --git a/rules/redhat/95-pam-console.rules b/rules/redhat/95-pam-console.rules
new file mode 100644
index 0000000000..cbb2d4aaf9
--- /dev/null
+++ b/rules/redhat/95-pam-console.rules
@@ -0,0 +1 @@
+ENV{STARTUP}!="1", ACTION=="add", SYSFS{dev}=="?*", KERNEL=="?*", RUN+="/sbin/pam_console_apply $env{DEVNAME} $env{DEVLINKS}"