source: udev/35-helper.rules@ f2d3163

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since f2d3163 was f0da65f, checked in by Jim Gifford <clfs@…>, 18 years ago

r3468@server: jim | 2006-05-14 11:39:43 -0700
Updates to udev cdsymlink_helper.sh

  • Property mode set to 100644
File size: 1.7 KB
RevLine 
[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
18SUBSYSTEM=="firmware", ACTION=="add", RUN+="firmware_helper"
[c2504ea]19
20# check cdrom helper
[dfdebf6]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"
[23fc9445]23BUS=="scsi", KERNEL=="scd[a-z]", ACTION=="add", IMPORT="cdrom_id --export $tempnode"
[bf5fe0d]24BUS=="scsi", KERNEL=="sg[0-9]*", ACTION=="add", DRIVER=="sr", GROUP="cdrom"
25
[f0da65f]26BUS=="ide", ENV{ID_CDROM}=="?*", PROGRAM="cdsymlink_helper.sh %k", SYMLINK+="cdrom%c", GROUP="cdrom"
27BUS=="ide", ENV{ID_CDROM_CD_R}=="?*", PROGRAM="cdsymlink_helper.sh %k", SYMLINK+="cdr%c"
28BUS=="ide", ENV{ID_CDROM_CD_RW}=="?*", PROGRAM="cdsymlink_helper.sh %k", SYMLINK+="cdrw%c"
29BUS=="ide", ENV{ID_CDROM_DVD}=="?*", PROGRAM="cdsymlink_helper.sh %k", SYMLINK+="dvd%c"
30BUS=="ide", ENV{ID_CDROM_DVD_R}=="?*", PROGRAM="cdsymlink_helper.sh %k", SYMLINK+="dvdrw%c"
[93a4751]31
[f0da65f]32BUS=="scsi", ENV{ID_CDROM}=="?*", SYMLINK+="cdrom%n", GROUP="cdrom"
[93a4751]33BUS=="scsi", ENV{ID_CDROM_CD_R}=="?*", SYMLINK+="cdr%n"
34BUS=="scsi", ENV{ID_CDROM_CD_RW}=="?*", SYMLINK+="cdrw%n"
35BUS=="scsi", ENV{ID_CDROM_DVD}=="?*", SYMLINK+="dvd%n"
36BUS=="scsi", ENV{ID_CDROM_DVD_R}=="?*", SYMLINK+="dvdrw%n"
[bf5fe0d]37
[d91bcb0]38# adds floppy devices
39KERNEL=="fd[0-9]*", ACTION=="add", SYSFS{cmos}=="*", RUN+="create_floppy_devices -c -t $sysfs{cmos} -m %M /dev/%k"t
[f0da65f]40
Note: See TracBrowser for help on using the repository browser.