chiark / gitweb /
update Debian rules
authorMarco d'Itri <md@Linux.IT>
Sun, 27 Aug 2006 00:28:31 +0000 (02:28 +0200)
committerKay Sievers <kay.sievers@suse.de>
Sun, 27 Aug 2006 00:28:31 +0000 (02:28 +0200)
etc/udev/debian/devfs.rules
etc/udev/debian/hotplug.rules
etc/udev/debian/permissions.rules
etc/udev/debian/persistent.rules
etc/udev/debian/udev.rules

index 107b197..37e4ae1 100644 (file)
@@ -13,7 +13,7 @@
 #
 
 # workaround for devices which do not report media changes
-SUBSYSTEMS=="ide", KERNEL=="hd[a-z]", ATTRS{removable}=="1", \
+SUBSYSTEMS=="ide", KERNEL=="hd[a-z]", ATTR{removable}=="1", \
        ENV{ID_MODEL}=="IOMEGA_ZIP*",   NAME="%k", OPTIONS+="all_partitions"
 SUBSYSTEMS=="ide", KERNEL=="hd[a-z]", ATTRS{media}=="floppy", \
        OPTIONS+="all_partitions"
index eae6886..8b48d77 100644 (file)
@@ -1,7 +1,7 @@
 ACTION!="add", GOTO="hotplug_not_add_event"
 
 # check if the device has already been claimed by a driver
-ENV{PHYSDEVDRIVER}=="?*", SUBSYSTEM!="input", GOTO="hotplug_driver_loaded"
+ENV{DRIVER}=="?*", SUBSYSTEM!="input", GOTO="hotplug_driver_loaded"
 
 # load the drivers
 ENV{MODALIAS}=="?*",   RUN+="/sbin/modprobe $env{MODALIAS}"
@@ -25,7 +25,7 @@ SUBSYSTEM=="scsi_device", ATTRS{type}=="1",   RUN+="/sbin/modprobe st", \
 SUBSYSTEM=="scsi_device", ATTRS{type}=="[45]", RUN+="/sbin/modprobe sr_mod"
 SUBSYSTEM=="scsi_device", ATTRS{type}=="[235689]", RUN+="/sbin/modprobe sg"
 
-SUBSYSTEM=="ide", ATTRS{media}=="tape",                RUN+="/sbin/modprobe ide-scsi"
+SUBSYSTEM=="ide", ATTR{media}=="tape",         RUN+="/sbin/modprobe ide-scsi"
 
 # From here on follows the hotplug agents which do not load modules
 LABEL="hotplug_driver_loaded"
@@ -34,11 +34,11 @@ LABEL="hotplug_driver_loaded"
 #SUBSYSTEM=="scsi_device", ATTRS{idVendor}=="...", \
 #      RUN+="scsi-re-add"
 
-SUBSYSTEM=="firmware",         RUN+="firmware.agent"
+SUBSYSTEM=="firmware",                         RUN+="firmware.agent"
 
 LABEL="hotplug_not_add_event"
 
-SUBSYSTEM=="net",              RUN+="/bin/sh -c '/lib/udev/net.agent &'"
+SUBSYSTEM=="net",                              RUN+="net.agent"
 
 # Log every event to /dev/hotplug.log (for debugging).
 #RUN+="logger.agent"
index 8b36959..06bbf66 100644 (file)
@@ -2,16 +2,16 @@ ACTION!="add", GOTO="permissions_end"
 
 # workarounds needed to synchronize with sysfs
 # only needed for kernels < v2.6.18-rc1
-DEVPATH=="/devices/*", ENV{PHYSDEVBUS}=="?*",  WAIT_FOR_SYSFS="bus"
+ENV{PHYSDEVPATH}!="?*", ENV{PHYSDEVBUS}=="?*", WAIT_FOR_SYSFS="bus"
 SUBSYSTEM=="scsi",                             WAIT_FOR_SYSFS="ioerr_cnt"
 # only needed for kernels < 2.6.16
 SUBSYSTEM=="net",                              WAIT_FOR_SYSFS="address"
 # only needed for kernels < 2.6.17
-SUBSYSTEM=="net", ENV{PHYSDEVDRIVER}=="?*",    WAIT_FOR_SYSFS="device/driver"
+SUBSYSTEM=="net", ENV{DRIVER}=="?*",           WAIT_FOR_SYSFS="device/driver"
 
 # default permissions for block devices
 SUBSYSTEM=="block",                            GROUP="disk"
-SUBSYSTEM=="block", ATTRS{removable}=="1",     GROUP="floppy"
+SUBSYSTEM=="block", ATTR{removable}=="1",      GROUP="floppy"
 
 # IDE devices
 KERNEL=="hd[a-z]|pcd[0-9]*",                   DRIVERS=="ide-cdrom|pcd", \
@@ -21,6 +21,7 @@ KERNEL=="ht[0-9]*",                           GROUP="tape"
 KERNEL=="nht[0-9]*",                           GROUP="tape"
 
 # SCSI devices
+KERNEL=="sr[0-9]*", IMPORT{program}="cdrom_id --export $tempnode"
 SUBSYSTEMS=="scsi", ATTRS{type}=="1",                          GROUP="tape"
 SUBSYSTEMS=="scsi", ATTRS{type}=="3", ATTRS{vendor}=="HP",     GROUP="scanner"
 SUBSYSTEMS=="scsi", ATTRS{type}=="3", ATTRS{vendor}=="Epson",  GROUP="scanner"
index ce8a6a0..277d03d 100644 (file)
@@ -8,9 +8,9 @@ ACTION!="add",                          GOTO="no_volume_id"
 KERNEL=="ram*|loop*|fd*|nbd*|dm-*",    GOTO="no_volume_id"
 
 # skip removable ide devices, because open(2) on them causes an events loop
-KERNEL=="hd*[!0-9]",   ATTRS{removable}=="1", DRIVERS=="ide-cs|ide-floppy", \
+KERNEL=="hd*[!0-9]",   ATTR{removable}=="1", DRIVERS=="ide-cs|ide-floppy", \
        GOTO="no_volume_id"
-KERNEL=="hd*[0-9]", ATTRS{../removable}=="1", \
+KERNEL=="hd*[0-9]", ATTR{../removable}=="1", \
        GOTO="no_volume_id"
 
 # skip xen virtual hard disks
@@ -21,7 +21,7 @@ KERNEL=="hd*[!0-9]", \
        IMPORT{program}="ata_id --export $tempnode"
 
 KERNEL=="sd*[!0-9]|sr*|st*",           ATTRS{ieee1394_id}=="?*", \
-       ENV{ID_BUS}="ieee1394", ENV{ID_SERIAL}="$sysfs{ieee1394_id}"
+       ENV{ID_BUS}="ieee1394", ENV{ID_SERIAL}="$attr{ieee1394_id}"
 KERNEL=="sd*[!0-9]|sr*|st*",           ENV{ID_SERIAL}=="", \
        IMPORT{program}="usb_id -x"
 KERNEL=="sd*[!0-9]|sr*|st*",           ENV{ID_SERIAL}=="", \
@@ -67,7 +67,7 @@ KERNEL=="*[0-9]",                     ENV{ID_PATH}=="?*", \
        SYMLINK+="disk/by-path/$env{ID_PATH}-part%n"
 
 # UUID and volume label
-KERNEL=="*[!0-9]", ATTRS{removable}=="1", GOTO="no_volume_id"
+KERNEL=="*[!0-9]", ATTR{removable}=="1", GOTO="no_volume_id"
 IMPORT{program}="vol_id --export $tempnode"
 ENV{ID_FS_UUID}=="?*",         ENV{ID_FS_USAGE}=="filesystem|other|crypto", \
        SYMLINK+="disk/by-uuid/$env{ID_FS_UUID}"
index 6498a13..3da6fad 100644 (file)
@@ -13,7 +13,7 @@
 #
 
 # workaround for devices which do not report media changes
-SUBSYSTEMS=="ide", KERNEL=="hd[a-z]", ATTRS{removable}=="1", \
+SUBSYSTEMS=="ide", KERNEL=="hd[a-z]", ATTR{removable}=="1", \
        ENV{ID_MODEL}=="IOMEGA_ZIP*",   NAME="%k", OPTIONS+="all_partitions"
 SUBSYSTEMS=="ide", KERNEL=="hd[a-z]", ATTRS{media}=="floppy", \
        OPTIONS+="all_partitions"