Changeset bf5fe0d


Ignore:
Timestamp:
Mar 14, 2006, 3:47:21 PM (19 years ago)
Author:
Jim Gifford <clfs@…>
Branches:
clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
Children:
3fbe135
Parents:
53885ce
Message:

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

Location:
udev
Files:
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • udev/35-helper.rules

    r53885ce rbf5fe0d  
    1919
    2020# check cdrom helper
    21 KERNEL=="hd[a-z]",      BUS=="ide", SYSFS{removable}=="1", RESULT=="cdrom", SYMLINK+="cdrom%e"
    22 KERNEL=="hd[a-z]",      BUS=="ide", SYSFS{removable}=="1", PROGRAM=="/lib/udev/check-cdrom.sh %k DVD", SYMLINK+="dvd%e"
    23 KERNEL=="sr[0-9]*",     BUS=="scsi", PROGRAM=="/lib/udev/check-cdrom.sh %k DVD", SYMLINK+="dvd%e"
    24 KERNEL=="hd[a-z]",      BUS=="ide", SYSFS{removable}=="1", PROGRAM=="/lib/udev/check-cdrom.sh %k CD-R", SYMLINK+="cdwriter%e"
    25 KERNEL=="sr[0-9]*",     BUS=="scsi", PROGRAM=="/lib/udev/check-cdrom.sh %k CD-R", SYMLINK+="cdwriter%e"
    26 KERNEL=="hd[a-z]",      BUS=="ide", SYSFS{removable}=="1", PROGRAM="/lib/udev/check-cdrom.sh %k DVD-R", SYMLINK+="dvdwriter%e"
    27 KERNEL=="sr[0-9]*",     BUS=="scsi", PROGRAM=="/lib/udev/check-cdrom.sh %k DVD-R", SYMLINK+="dvdwriter%e"
     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"
    2825
     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"
     35
  • udev/50-udev.rules

    r53885ce rbf5fe0d  
    162162SUBSYSTEM=="usb_device",        PROGRAM="/bin/sh -c 'K=%k; K=$${K#usbdev}; printf bus/usb/%%03i/%%03i $${K%%%%.*} $${K#*.}'", NAME="%c", MODE="0644"
    163163
    164 # cdrom
    165 KERNEL=="sr[0-9]*",             GROUP="cdrom", SYMLINK+="cdrom%e"
    166 KERNEL=="scd[0-9]*",            GROUP="cdrom", SYMLINK+="cdrom%e"
    167 KERNEL=="pcd[0-9]*",            GROUP="cdrom", SYMLINK+="cdrom%e"
    168 
  • udev/Makefile

    r53885ce rbf5fe0d  
    3030scripts:
    3131        install -m ${SCRIPTMODE} load_floppy_module.sh ${DESTDIR}/lib/udev/load_floppy_module.sh
    32         install -m ${SCRIPTMODE} check-cdrom.sh ${DESTDIR}/lib/udev/check-cdrom.sh
    3332
    3433boot:
  • udev/udev.makechanges

    r53885ce rbf5fe0d  
    1111Second, you will need to use udev 079 or above, here is the build instructions
    1212you must use to get full functionality.
    13 make EXTRAS="extras/firmware extras/scsi_id extras/volume_id extras/ata_id extras/usb_id extras/edd_id extras/dasd_id" udevdir=/dev
     13make EXTRAS="extras/firmware extras/cdrom_id extras/scsi_id extras/volume_id extras/ata_id extras/usb_id extras/edd_id extras/dasd_id" udevdir=/dev
    1414
    15 make EXTRAS="extras/firmware extras/scsi_id extras/volume_id extras/ata_id extras/usb_id extras/edd_id extras/dasd_id" udevdir=/dev install
     15make EXTRAS="extras/firmware extras/cdrom_id extras/scsi_id extras/volume_id extras/ata_id extras/usb_id extras/edd_id extras/dasd_id" udevdir=/dev install
    1616cp extras/path_id /sbin
    1717cp extras/eventrecorder.sh /lib/udev
Note: See TracChangeset for help on using the changeset viewer.