source: udev/35-helper.rules @ 93a4751

clfs-1.2clfs-2.1clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change on this file since 93a4751 was 93a4751, checked in by Jim Gifford <clfs@…>, 16 years ago

r3465@server: jim | 2006-05-14 11:07:31 -0700
Fixed cd symlinks

  • Property mode set to 100644
File size: 1.6 KB
Line 
1########################################################################
2#
3# Description : 35-helper.rules
4#
5# Authors     : Based on Open Suse Udev Rules
6#               kay.sievers@suse.de
7#
8# Adapted to  : Jim Gifford
9# LFS         : Alexander E. Patrakov
10#
11# Version     : 00.01
12#
13# Notes       :
14#
15########################################################################
16
17# kernel firmware loader
18SUBSYSTEM=="firmware",  ACTION=="add", RUN+="firmware_helper"
19
20# check cdrom helper
21BUS=="ide",     KERNEL=="hd[a-z]", ACTION=="add", IMPORT="cdrom_id --export $tempnode"
22BUS=="scsi",    KERNEL=="sr[0-9]*", ACTION=="add", IMPORT="cdrom_id --export $tempnode"
23BUS=="scsi",    KERNEL=="scd[a-z]", ACTION=="add", IMPORT="cdrom_id --export $tempnode"
24BUS=="scsi",    KERNEL=="sg[0-9]*", ACTION=="add", DRIVER=="sr", GROUP="cdrom"
25
26BUS=="ide",     ENV{ID_CDROM}=="?*", SYMLINK+="cdrom-temp", GROUP="cdrom"
27BUS=="ide",     ENV{ID_CDROM_CD_R}=="?*", SYMLINK+="cdr-temp"
28BUS=="ide",     ENV{ID_CDROM_CD_RW}=="?*", SYMLINK+="cdrw-temp"
29BUS=="ide",     ENV{ID_CDROM_DVD}=="?*", SYMLINK+="dvd-temp"
30BUS=="ide",     ENV{ID_CDROM_DVD_R}=="?*", SYMLINK+="dvdrw-temp"
31BUS=="ide",     KERNEL=="hd[a-z]", ACTION=="add", RUN+="cdsymlink_helper.sh %k"
32
33BUS=="scsi",    ENV{ID_CDROM}=="?*", SYMLINK+="cdrom%n", GROUP="cdrom"
34BUS=="scsi",    ENV{ID_CDROM_CD_R}=="?*", SYMLINK+="cdr%n"
35BUS=="scsi",    ENV{ID_CDROM_CD_RW}=="?*", SYMLINK+="cdrw%n"
36BUS=="scsi",    ENV{ID_CDROM_DVD}=="?*", SYMLINK+="dvd%n"
37BUS=="scsi",    ENV{ID_CDROM_DVD_R}=="?*", SYMLINK+="dvdrw%n"
38
39# adds floppy devices
40KERNEL=="fd[0-9]*", ACTION=="add", SYSFS{cmos}=="*", RUN+="create_floppy_devices -c -t $sysfs{cmos} -m %M /dev/%k"t
Note: See TracBrowser for help on using the repository browser.