]> err.no Git - systemd/commitdiff
update SUSE rules
authorKay Sievers <kay.sievers@suse.de>
Sat, 30 Sep 2006 15:12:25 +0000 (17:12 +0200)
committerKay Sievers <kay.sievers@suse.de>
Sat, 30 Sep 2006 15:12:25 +0000 (17:12 +0200)
etc/udev/suse/50-udev-default.rules
etc/udev/suse/60-persistent-storage.rules

index 317046c2049f6c6525c78d7c692ac89d9b02a000..5b031416d3dc216ae3b74e11c303ede64f997abd 100644 (file)
@@ -62,7 +62,7 @@ KERNEL=="rioctl",             NAME="specialix_rioctl", SYMLINK+="%k"
 KERNEL=="sxctl",               NAME="specialix_sxctl", SYMLINK+="%k"
 
 # network
-KERNEL=="tun",                 NAME="net/%k", MODE="0600"
+KERNEL=="tun",                 NAME="net/%k", MODE="0666"
 
 # misc devices
 KERNEL=="mem|kmem",            GROUP="kmem", MODE="640"
@@ -131,7 +131,7 @@ KERNEL=="iseries/nvt*",             NAME="%k", GROUP="disk"
 KERNEL=="iseries/ibmsis*",     NAME="%k", GROUP="disk"
 
 # libusb device access
-SUBSYSTEM=="usb_device", PROGRAM="/bin/sh -c 'K=%k; K=$${K#usbdev}; printf bus/usb/%%03i/%%03i $${K%%%%.*} $${K#*.}'", NAME="%c", MODE="0644"
+SUBSYSTEM=="usb_device", ACTION=="add", PROGRAM="/bin/sh -c 'K=%k; K=$${K#usbdev}; printf bus/usb/%%03i/%%03i $${K%%%%.*} $${K#*.}'", NAME="%c", MODE="0644"
 
 # kernel firmware loader
 SUBSYSTEM=="firmware", ACTION=="add", RUN+="firmware.sh"
index 5a4843e495ec7e2613b4600598f93d86ba48824a..ed979e3ce614d56c3885c286a61655284f0a9966 100644 (file)
@@ -12,14 +12,14 @@ KERNEL=="hd*[!0-9]", ATTRS{removable}=="1", DRIVERS=="ide-cs|ide-floppy", GOTO="
 KERNEL=="hd*[0-9]", ATTRS{removable}=="1", GOTO="persistent_storage_end"
 
 # for partitions import parent information
-KERNEL=="*[0-9]", IMPORT{parent}=="ID_*"
+KERNEL=="*[0-9]", IMPORT{parent}="ID_*"
 
 # by-id (hardware serial number)
 KERNEL=="hd*[!0-9]", IMPORT{program}="ata_id --export $tempnode"
 KERNEL=="hd*[!0-9]", ENV{ID_SERIAL}=="?*", SYMLINK+="disk/by-id/ata-$env{ID_MODEL}_$env{ID_SERIAL}"
-KERNEL=="hd*[0-9]", IMPORT{parent}=="ID_*", SYMLINK+="disk/by-id/ata-$env{ID_MODEL}_$env{ID_SERIAL}-part%n"
+KERNEL=="hd*[0-9]", SYMLINK+="disk/by-id/ata-$env{ID_MODEL}_$env{ID_SERIAL}-part%n"
 
-KERNEL=="sd*[!0-9]|sr*|st*", ATTRS{ieee1394_id}=="*", ENV{ID_SERIAL}="$attr{ieee1394_id}", ENV{ID_BUS}="ieee1394"
+KERNEL=="sd*[!0-9]|sr*|st*", ATTRS{ieee1394_id}=="?*", ENV{ID_SERIAL}="$attr{ieee1394_id}", ENV{ID_BUS}="ieee1394"
 KERNEL=="sd*[!0-9]|sr*|st*", ENV{ID_SERIAL}=="", IMPORT{program}="usb_id -x"
 KERNEL=="sd*[!0-9]|sr*|st*", ENV{ID_SERIAL}=="", IMPORT{program}="scsi_id -g -x -s %p -d $tempnode"
 KERNEL=="sd*[!0-9]|sr*|st*", ENV{ID_SERIAL}=="", IMPORT{program}="scsi_id -g -x -a -s %p -d $tempnode"