summaryrefslogtreecommitdiff
path: root/etc/udev
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2004-12-21 00:19:34 +0100
committerGreg KH <gregkh@suse.de>2005-04-26 23:19:09 -0700
commiteb8700908c961d4a0197273f728bc3a3d6cd6c4a (patch)
treefe6149d2ea8f62dd9fa27fa2bde49c68dbc5da94 /etc/udev
parente93901468c668f3dda6f57ee7f4b953e287b1622 (diff)
[PATCH] update Fedora config files and add some more tests
Diffstat (limited to 'etc/udev')
-rw-r--r--etc/udev/redhat/udev.rules10
1 files changed, 5 insertions, 5 deletions
diff --git a/etc/udev/redhat/udev.rules b/etc/udev/redhat/udev.rules
index 30d8ba7c98..9df77b3339 100644
--- a/etc/udev/redhat/udev.rules
+++ b/etc/udev/redhat/udev.rules
@@ -87,6 +87,9 @@ KERNEL="pcd[0-9]*", SYMLINK="cdrom%e"
KERNEL="fd[0-9]*", SYMLINK="floppy%e"
KERNEL="nst[0-9]*", SYMLINK="tape%e"
+# default permissions for all block devices
+SUBSYSTEM="block", GROUP="disk", MODE="0640"
+
KERNEL="hd[a-z]", BUS="ide", SYSFS{removable}="1", PROGRAM="/etc/udev/scripts/ide-media.sh %k", RESULT="floppy", SYMLINK="floppy%e, NAME{ignore_remove, all_partitions}="%k", GROUP="floppy"
KERNEL="hd[a-z]", BUS="ide", SYSFS{removable}="1", RESULT="cdrom", SYMLINK="cdrom%e"
@@ -101,10 +104,7 @@ KERNEL="hd[a-z]", BUS="ide", SYSFS{removable}="1", PROGRAM="/etc/udev/scripts/ch
KERNEL="sr[0-9]*", BUS="scsi", PROGRAM="/etc/udev/scripts/check-cdrom.sh %k DVD-R", SYMLINK="dvdwriter%e"
# rename sr* to scd*
-KERNEL="sr[0-9]*", BUS="scsi", NAME="scd%n", GROUP="disk", MODE="0640"
-KERNEL="hd[a-z]*", BUS="ide", SYSFS{removable}="1", NAME{ignore_remove}="%k", GROUP="disk", MODE="0640"
-
-# all block devices
-SUBSYSTEM="block", NAME="%k", GROUP="disk", MODE="0640"
+KERNEL="sr[0-9]*", BUS="scsi", NAME="scd%n"
+KERNEL="hd[a-z]*", BUS="ide", SYSFS{removable}="1", NAME{ignore_remove}="%k"
KERNEL="dvb*", PROGRAM="/etc/udev/scripts/dvb.sh %k", NAME="%c"