Changeset bda8cfb for udev


Ignore:
Timestamp:
Aug 31, 2006, 9:18:26 AM (18 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:
d49afdb
Parents:
664631f
Message:

r5455@server: jim | 2006-08-31 09:17:48 -0700
Updated for Udev 098

Location:
udev
Files:
1 added
6 edited

Legend:

Unmodified
Added
Removed
  • udev/35-helper.rules

    r664631f rbda8cfb  
    3737
    3838# adds floppy devices
    39 KERNEL=="fd[0-9]*", ACTION=="add", SYSFS{cmos}=="*", RUN+="create_floppy_devices -c -t $sysfs{cmos} -m %M /dev/%k"t
    40 
     39KERNEL=="fd[0-9]*", ACTION=="add", ATTRS{cmos}=="*", RUN+="create_floppy_devices -c -t $sysfs{cmos} -m %M /dev/%k"
  • udev/40-modprobe.rules

    r664631f rbda8cfb  
    1919
    2020# scsi
    21 SUBSYSTEM=="scsi_device",       ACTION=="add", SYSFS{device/type}=="0|7|14", RUN+="/sbin/modprobe sd_mod"
    22 SUBSYSTEM=="scsi_device",       ACTION=="add", SYSFS{device/type}=="1", SYSFS{device/vendor}=="On[sS]tream", RUN+="/sbin/modprobe osst"
    23 SUBSYSTEM=="scsi_device",       ACTION=="add", SYSFS{device/type}=="1", RUN+="/sbin/modprobe st"
    24 SUBSYSTEM=="scsi_device",       ACTION=="add", SYSFS{device/type}=="[45]", RUN+="/sbin/modprobe sr_mod"
     21SUBSYSTEM=="scsi_device",       ACTION=="add", ATTRS{type}=="0|7|14", RUN+="/sbin/modprobe sd_mod"
     22SUBSYSTEM=="scsi_device",       ACTION=="add", ATTRS{type}=="1", SYSFS{device/vendor}=="On[sS]tream", RUN+="/sbin/modprobe osst"
     23SUBSYSTEM=="scsi_device",       ACTION=="add", ATTRS{type}=="1", RUN+="/sbin/modprobe st"
     24SUBSYSTEM=="scsi_device",       ACTION=="add", ATTRS{type}=="[45]", RUN+="/sbin/modprobe sr_mod"
    2525SUBSYSTEM=="scsi_device",       ACTION=="add", RUN+="/sbin/modprobe sg"
    2626
  • udev/50-udev.rules

    r664631f rbda8cfb  
    3535KERNEL=="hvsi*",                GROUP="uucp"
    3636KERNEL=="iseries/vtty*",        GROUP="uucp"
    37 KERNEL=="ttyUSB*",              SYSFS{product}=="[Pp]alm*Handheld*", SYMLINK+="pilot"
     37KERNEL=="ttyUSB*",              ATTRS{product}=="[Pp]alm*Handheld*", SYMLINK+="pilot"
    3838
    3939# video/graphics
  • udev/60-persistent-disk.rules

    r664631f rbda8cfb  
    1818# scheme based on "Linux persistent device names", 2004, Hannes Reinecke <hare@suse.de>
    1919
    20 ACTION!="add",          GOTO="persistent_end"
    21 SUBSYSTEM!="block",     GOTO="persistent_end"
     20ACTION!="add",          GOTO="persistent_storage_end"
     21SUBSYSTEM!="block",     GOTO="persistent_storage_end"
    2222
    2323# skip rules for inappropriate block devices
    24 KERNEL=="ram*|loop*|fd*|nbd*",  GOTO="persistent_end"
     24KERNEL=="ram*|loop*|fd*|nbd*",  GOTO="persistent_storage_end"
     25
     26# Set Permissions on CDOM
     27BUS=="ide",     DRIVER=="ide-cdrom", ATTRS{removable}=="1", GROUP="cdrom", MODE="660"
    2528
    2629# never access removable ide devices, the drivers are causing event loops on open()
    27 BUS=="ide",     DRIVER=="ide-cdrom", SYSFS{removable}=="1", GROUP="cdrom", MODE="660"
    28 BUS=="ide",     DRIVER!="ide-cdrom", SYSFS{removable}=="1", GOTO="persistent_end"
     30KERNEL=="hd*[!0-9]", ATTRS{removable}=="1", DRIVERS=="ide-cs|ide-floppy", GOTO="persistent_storage_end"
     31KERNEL=="hd*[0-9]", ATTRS{../removable}=="1", GOTO="persistent_storage_end"
    2932
    3033# by-id (hardware serial number)
     
    3336KERNEL=="hd*[0-9]",     IMPORT{parent}=="ID_*", SYMLINK+="disk/by-id/ata-$env{ID_MODEL}_$env{ID_SERIAL}-part%n"
    3437
    35 KERNEL=="sd*[!0-9]|sr*",                SYSFS{ieee1394_id}=="*", ENV{ID_SERIAL}="$sysfs{ieee1394_id}", ENV{ID_BUS}="ieee1394"
     38KERNEL=="sd*[!0-9]|sr*",                ATTRS{ieee1394_id}=="*", ENV{ID_SERIAL}="$attr{ieee1394_id}", ENV{ID_BUS}="ieee1394"
    3639KERNEL=="sd*[!0-9]|sr*",                ENV{ID_SERIAL}=="", IMPORT{program}="usb_id -x"
    3740KERNEL=="sd*[!0-9]|sr*",                ENV{ID_SERIAL}=="", IMPORT{program}="scsi_id -g -x -s %p -d $tempnode"
     
    4649# by-path (shortest physical path)
    4750KERNEL=="*[!0-9]|sr*",  ENV{ID_TYPE}=="?*", IMPORT{program}="path_id %p", SYMLINK+="disk/by-path/$env{ID_PATH}"
    48 KERNEL=="sr*",          GOTO="persistent_end"
     51KERNEL=="sr*",          GOTO="persistent_storage_end"
    4952KERNEL=="*[0-9]",       IMPORT{parent}=="ID_*"
    5053KERNEL=="*[0-9]",       ENV{ID_PATH}=="?*", SYMLINK+="disk/by-path/$env{ID_PATH}-part%n"
    5154
    5255# by-label/by-uuid (filesystem properties)
    53 KERNEL=="*[!0-9]",              SYSFS{removable}=="1", GOTO="persistent_end"
     56KERNEL=="*[!0-9]",              ATTRS{removable}=="1", GOTO="persistent_storage_end"
    5457IMPORT{program}="vol_id --export $tempnode"
    5558ENV{ID_FS_UUID}=="?*",          SYMLINK+="disk/by-uuid/$env{ID_FS_UUID}"
     
    6366KERNEL=="dm-[0-9]*",    ACTION=="add", PROGRAM="/sbin/dmsetup info -c --noopencount --noheadings -o name -j %M -m %m", SYMLINK+="disk/by-name/%c"
    6467
    65 LABEL="persistent_end"
     68LABEL="persistent_storage_end"
  • udev/61-persistent-input.rules

    r664631f rbda8cfb  
    2121# usb devices
    2222BUS=="usb", IMPORT{program}="usb_id -x"
    23 BUS=="usb", SYSFS{bInterfaceClass}=="03", SYSFS{bInterfaceProtocol}=="01", ENV{ID_CLASS}="kbd"
    24 BUS=="usb", SYSFS{bInterfaceClass}=="03", SYSFS{bInterfaceProtocol}=="02", ENV{ID_CLASS}="mouse"
     23BUS=="usb", ATTRS{bInterfaceClass}=="03", ATTRS{bInterfaceProtocol}=="01", ENV{ID_CLASS}="kbd"
     24BUS=="usb", ATTRS{bInterfaceClass}=="03", ATTRS{bInterfaceProtocol}=="02", ENV{ID_CLASS}="mouse"
     25
     26# other devices
     27DRIVERS=="pcspkr", ENV{ID_CLASS}="spkr"
     28DRIVERS=="atkbd", ENV{ID_CLASS}="kbd"
     29DRIVERS=="psmouse", ENV{ID_CLASS}="mouse"
     30ATTRS{name}=="*dvb*|*DVB*|* IR *", ENV{ID_CLASS}="ir"
     31ATTRS{modalias}=="input:*-*a[068],*|input:*-*a*,[68],*m*", ATTRS{modalias}!="input:*-*k*14A,*r*", ENV{ID_CLASS}="joystick"
     32
     33ENV{ID_SERIAL}=="", ENV{ID_SERIAL}="noserial"
    2534
    2635# by-id links
  • udev/Makefile

    r664631f rbda8cfb  
    8383        @echo "---------------------------------------------------------------------------------------"
    8484        @echo "make install                     install udev rules package and helper scripts"
     85        @echo "make install-device-mapper       install device-mapper rules"
    8586        @echo "make install-netboot             install udev rules package for netboot"
    8687        @echo "make install-network             install network helper package"
     
    9596        install -m 644 contrib/common/udev_helper ${DESTDIR}/etc/sysconfig/udev_helper
    9697       
     98install-device-mapper:
     99        install -d ${DESTDIR}/lib/udev
     100        install -d ${DESTDIR}/etc/rc.d/init.d
     101        install -m ${RULESMODE} 70-device-mapper.rules ${DESTDIR}/etc/udev/rules.d/70-device-mapper.rules
     102
    97103install-network: install-helper-functions install-network-update
    98104        install -d ${DESTDIR}/etc/udev/rules.d/
Note: See TracChangeset for help on using the changeset viewer.