Changeset dfdebf6 for udev


Ignore:
Timestamp:
Apr 3, 2006, 8:21:42 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:
968489e
Parents:
8359ebc
Message:

r2774@server: jim | 2006-04-03 20:20:02 -0700
Updated based on UDEV-089

Location:
udev
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • udev/35-helper.rules

    r8359ebc rdfdebf6  
    1919
    2020# check cdrom helper
    21 BUS=="ide",     KERNEL=="hd[a-z]", ACTION=="add", IMPORT="/sbin/cdrom_id --export $tempnode"
    22 BUS=="scsi",    KERNEL=="sr[0-9]*", ACTION=="add", IMPORT="/sbin/cdrom_id --export $tempnode"
    23 BUS=="scsi",    KERNEL="scd[a-z]", ACTION=="add", IMPORT="/sbin/cdrom_id --export $tempnode"
     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"
     23BUS=="scsi",    KERNEL="scd[a-z]", ACTION=="add", IMPORT="cdrom_id --export $tempnode"
    2424BUS=="scsi",    KERNEL=="sg[0-9]*", ACTION=="add", DRIVER=="sr", GROUP="cdrom"
    2525
  • udev/60-persistent-disk.rules

    r8359ebc rdfdebf6  
    2828
    2929# by-id (hardware serial number)
    30 KERNEL=="hd*[!0-9]",    IMPORT{program}="/sbin/ata_id --export $tempnode"
     30KERNEL=="hd*[!0-9]",    IMPORT{program}="ata_id --export $tempnode"
    3131KERNEL=="hd*[!0-9]",    ENV{ID_SERIAL}=="?*", SYMLINK+="disk/by-id/ata-$env{ID_MODEL}_$env{ID_SERIAL}"
    3232KERNEL=="hd*[0-9]",     IMPORT{parent}=="ID_*", SYMLINK+="disk/by-id/ata-$env{ID_MODEL}_$env{ID_SERIAL}-part%n"
    3333
    3434KERNEL=="sd*[!0-9]|sr*",                SYSFS{ieee1394_id}=="*", ENV{ID_SERIAL}="$sysfs{ieee1394_id}", ENV{ID_BUS}="ieee1394"
    35 KERNEL=="sd*[!0-9]|sr*",                ENV{ID_SERIAL}=="", IMPORT{program}="/sbin/usb_id -x"
    36 KERNEL=="sd*[!0-9]|sr*",                ENV{ID_SERIAL}=="", IMPORT{program}="/sbin/scsi_id -g -x -s %p -d $tempnode"
    37 KERNEL=="sd*[!0-9]|sr*",                ENV{ID_SERIAL}=="", IMPORT{program}="/sbin/scsi_id -g -x -a -s %p -d $tempnode"
    38 KERNEL=="dasd*[!0-9]",                  IMPORT{program}="/sbin/dasd_id --export $tempnode"
     35KERNEL=="sd*[!0-9]|sr*",                ENV{ID_SERIAL}=="", IMPORT{program}="usb_id -x"
     36KERNEL=="sd*[!0-9]|sr*",                ENV{ID_SERIAL}=="", IMPORT{program}="scsi_id -g -x -s %p -d $tempnode"
     37KERNEL=="sd*[!0-9]|sr*",                ENV{ID_SERIAL}=="", IMPORT{program}="scsi_id -g -x -a -s %p -d $tempnode"
     38KERNEL=="dasd*[!0-9]",                  IMPORT{program}="dasd_id --export $tempnode"
    3939KERNEL=="sd*[!0-9]|sr*|dasd*[!0-9]",    ENV{ID_SERIAL}=="?*", SYMLINK+="disk/by-id/$env{ID_BUS}-$env{ID_SERIAL}"
    4040
     
    4444
    4545# by-path (shortest physical path)
    46 KERNEL=="*[!0-9]|sr*",  ENV{ID_TYPE}=="?*", IMPORT{program}="/sbin/path_id %p", SYMLINK+="disk/by-path/$env{ID_PATH}"
     46KERNEL=="*[!0-9]|sr*",  ENV{ID_TYPE}=="?*", IMPORT{program}="path_id %p", SYMLINK+="disk/by-path/$env{ID_PATH}"
    4747KERNEL=="sr*",          GOTO="persistent_end"
    4848KERNEL=="*[0-9]",       IMPORT{parent}=="ID_*"
     
    5151# by-label/by-uuid (filesystem properties)
    5252KERNEL=="*[!0-9]",              SYSFS{removable}=="1", GOTO="persistent_end"
    53 IMPORT{program}="/sbin/vol_id --export $tempnode"
     53IMPORT{program}="vol_id --export $tempnode"
    5454ENV{ID_FS_UUID}=="?*",          SYMLINK+="disk/by-uuid/$env{ID_FS_UUID}"
    5555ENV{ID_FS_LABEL_SAFE}=="?*",    SYMLINK+="disk/by-label/$env{ID_FS_LABEL_SAFE}"
    5656
    5757# BIOS Enhanced Disk Device
    58 KERNEL=="*[!0-9]",      IMPORT{program}="/sbin/edd_id --export $tempnode"
     58KERNEL=="*[!0-9]",      IMPORT{program}="edd_id --export $tempnode"
    5959KERNEL=="*[!0-9]",      ENV{ID_EDD}=="?*", SYMLINK+="disk/by-id/edd-$env{ID_EDD}"
    6060KERNEL=="*[0-9]",       ENV{ID_EDD}=="?*", SYMLINK+="disk/by-id/edd-$env{ID_EDD}-part%n"
  • udev/61-persistent-input.rules

    r8359ebc rdfdebf6  
    2020
    2121# usb devices
    22 BUS=="usb", IMPORT{program}="/sbin/usb_id -x"
     22BUS=="usb", IMPORT{program}="usb_id -x"
    2323BUS=="usb", SYSFS{bInterfaceClass}="03", SYSFS{bInterfaceProtocol}="01", ENV{ID_CLASS}="kbd"
    2424BUS=="usb", SYSFS{bInterfaceClass}="03", SYSFS{bInterfaceProtocol}="02", ENV{ID_CLASS}="mouse"
     
    2929
    3030# by-path
    31 IMPORT{program}="/sbin/path_id %p"
     31IMPORT{program}="path_id %p"
    3232ENV{ID_PATH}=="?*", KERNEL=="mouse*", SYMLINK+="input/by-path/$env{ID_PATH}-$env{ID_CLASS}"
    3333ENV{ID_PATH}=="?*", KERNEL=="event*", SYMLINK+="input/by-path/$env{ID_PATH}-$env{ID_CLASS}"
Note: See TracChangeset for help on using the changeset viewer.