source: udev/35-helper.rules@ 601f1fe

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 601f1fe was bf5fe0d, checked in by Jim Gifford <clfs@…>, 19 years ago

r2566@server: jim | 2006-03-14 15:46:21 -0800
Updated cdrom detection

  • Property mode set to 100644
File size: 1.2 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
[bf5fe0d]21BUS=="ide", KERNEL=="hd[a-z]", ACTION=="add", IMPORT="/sbin/cdrom_id --export $tempnode"
22BUS=="scsi", KERNEL=="sr[0-9]*", ACTION=="add", IMPORT="/sbin/cdrom_id --export $tempnode"
23BUS=="scsi", KERNEL="scd[a-z]", ACTION=="add", IMPORT="/sbin/cdrom_id --export $tempnode"
24BUS=="scsi", KERNEL=="sg[0-9]*", ACTION=="add", DRIVER=="sr", GROUP="cdrom"
25
26ENV{ID_CDROM}=="?*", SYMLINK+="cdrom%m", GROUP="cdrom"
27ENV{ID_CDROM_CD_R}=="?*", SYMLINK+="cdr%m"
28ENV{ID_CDROM_CD_RW}=="?*", SYMLINK+="cdrw%m"
29ENV{ID_CDROM_DVD}=="?*", SYMLINK+="dvd%m"
30ENV{ID_CDROM_DVD_R}=="?*", SYMLINK+="dvdrw%m"
31
32# Run network stuff when the network device is loaded
33ACTION=="add", SUBSYSTEM=="net", ENV{INTERFACE}=="*", RUN+="network_helper.sh"
34ACTION=="remove", SUBSYSTEM=="net", ENV{INTERFACE}=="*", RUN+="network_helper.sh"
[c2504ea]35
Note: See TracBrowser for help on using the repository browser.