Changeset c2504ea for udev


Ignore:
Timestamp:
Feb 21, 2006, 2:15:51 AM (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:
05139a3
Parents:
f5454f0
Message:

r1099@server (orig r1097): jim | 2006-01-25 11:02:14 -0800

r1111@server: jim | 2006-01-25 10:56:58 -0800
Added: cdrom rules


Location:
udev
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • udev/35-helper.rules

    rf5454f0 rc2504ea  
    1717# kernel firmware loader
    1818SUBSYSTEM=="firmware",  ACTION=="add", RUN+="firmware_helper"
     19
     20# check cdrom helper
     21KERNEL=="hd[a-z]",      BUS=="ide", SYSFS{removable}=="1", RESULT=="cdrom", SYMLINK+="cdrom%e"
     22KERNEL=="hd[a-z]",      BUS=="ide", SYSFS{removable}=="1", PROGRAM=="/lib/udev/check-cdrom.sh %k DVD", SYMLINK+="dvd%e"
     23KERNEL=="sr[0-9]*",     BUS=="scsi", PROGRAM=="/lib/udev/check-cdrom.sh %k DVD", SYMLINK+="dvd%e"
     24KERNEL=="hd[a-z]",      BUS=="ide", SYSFS{removable}=="1", PROGRAM=="/lib/udev/check-cdrom.sh %k CD-R", SYMLINK+="cdwriter%e"
     25KERNEL=="sr[0-9]*",     BUS=="scsi", PROGRAM=="/lib/udev/check-cdrom.sh %k CD-R", SYMLINK+="cdwriter%e"
     26KERNEL=="hd[a-z]",      BUS=="ide", SYSFS{removable}=="1", PROGRAM="/lib/udev/check-cdrom.sh %k DVD-R", SYMLINK+="dvdwriter%e"
     27KERNEL=="sr[0-9]*",     BUS=="scsi", PROGRAM=="/lib/udev/check-cdrom.sh %k DVD-R", SYMLINK+="dvdwriter%e"
     28
  • udev/50-udev.rules

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

    rf5454f0 rc2504ea  
    2222scripts:
    2323        install -m ${SCRIPTMODE} load_floppy_module.sh ${DESTDIR}/lib/udev/load_floppy_module.sh
     24        install -m ${SCRIPTMODE} check-cdrom.sh ${DESTDIR}/lib/udev/check-cdrom.sh
    2425        install -m ${SCRIPTMODE} input.sh ${DESTDIR}/lib/udev/input.sh
    2526
Note: See TracChangeset for help on using the changeset viewer.