[7e161ea] | 1 | ########################################################################
|
---|
| 2 | #
|
---|
[1f7827a2] | 3 | # Description : 35-helper.rules
|
---|
[7e161ea] | 4 | #
|
---|
| 5 | # Authors : Based on Open Suse Udev Rules
|
---|
| 6 | # kay.sievers@suse.de
|
---|
| 7 | #
|
---|
| 8 | # Adapted to : Jim Gifford
|
---|
[1f7827a2] | 9 | # LFS : Alexander E. Patrakov
|
---|
[7e161ea] | 10 | #
|
---|
[1f7827a2] | 11 | # Version : 00.01
|
---|
[7e161ea] | 12 | #
|
---|
[1f7827a2] | 13 | # Notes :
|
---|
[7e161ea] | 14 | #
|
---|
| 15 | ########################################################################
|
---|
| 16 |
|
---|
[1f7827a2] | 17 | # kernel firmware loader
|
---|
| 18 | SUBSYSTEM=="firmware", ACTION=="add", RUN+="firmware_helper"
|
---|
[c2504ea] | 19 |
|
---|
| 20 | # check cdrom helper
|
---|
[dfdebf6] | 21 | BUS=="ide", KERNEL=="hd[a-z]", ACTION=="add", IMPORT="cdrom_id --export $tempnode"
|
---|
| 22 | BUS=="scsi", KERNEL=="sr[0-9]*", ACTION=="add", IMPORT="cdrom_id --export $tempnode"
|
---|
[23fc9445] | 23 | BUS=="scsi", KERNEL=="scd[a-z]", ACTION=="add", IMPORT="cdrom_id --export $tempnode"
|
---|
[bf5fe0d] | 24 | BUS=="scsi", KERNEL=="sg[0-9]*", ACTION=="add", DRIVER=="sr", GROUP="cdrom"
|
---|
| 25 |
|
---|
[df6532c] | 26 | BUS=="ide", ENV{ID_CDROM}=="?*", PROGRAM="cdsymlink_helper.sh %k ide", SYMLINK+="cdrom%c"
|
---|
| 27 | BUS=="ide", ENV{ID_CDROM_CD_R}=="?*", PROGRAM="cdsymlink_helper.sh %k ide", SYMLINK+="cdr%c"
|
---|
| 28 | BUS=="ide", ENV{ID_CDROM_CD_RW}=="?*", PROGRAM="cdsymlink_helper.sh %k ide", SYMLINK+="cdrw%c"
|
---|
| 29 | BUS=="ide", ENV{ID_CDROM_DVD}=="?*", PROGRAM="cdsymlink_helper.sh %k ide", SYMLINK+="dvd%c"
|
---|
| 30 | BUS=="ide", ENV{ID_CDROM_DVD_R}=="?*", PROGRAM="cdsymlink_helper.sh %k ide", SYMLINK+="dvdrw%c"
|
---|
[93a4751] | 31 |
|
---|
[4631c1c] | 32 | BUS=="scsi", ENV{ID_CDROM}=="?*", PROGRAM="cdsymlink_helper.sh %n scsi", SYMLINK+="cdrom%c"
|
---|
| 33 | BUS=="scsi", ENV{ID_CDROM_CD_R}=="?*", PROGRAM="cdsymlink_helper.sh %n scsi", SYMLINK+="cdr%c"
|
---|
| 34 | BUS=="scsi", ENV{ID_CDROM_CD_RW}=="?*", PROGRAM="cdsymlink_helper.sh %n scsi", SYMLINK+="cdrw%c"
|
---|
| 35 | BUS=="scsi", ENV{ID_CDROM_DVD}=="?*", PROGRAM="cdsymlink_helper.sh %n scsi", SYMLINK+="dvd%c"
|
---|
| 36 | BUS=="scsi", ENV{ID_CDROM_DVD_R}=="?*", PROGRAM="cdsymlink_helper.sh %n scsi", SYMLINK+="dvdrw%c"
|
---|
[bf5fe0d] | 37 |
|
---|
[d91bcb0] | 38 | # adds floppy devices
|
---|
| 39 | KERNEL=="fd[0-9]*", ACTION=="add", SYSFS{cmos}=="*", RUN+="create_floppy_devices -c -t $sysfs{cmos} -m %M /dev/%k"t
|
---|
[f0da65f] | 40 |
|
---|
[4631c1c] | 41 |
|
---|