[udev] attributes aren't replaced in the run command

Bug #429398 reported by Id2ndR
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
udev (Ubuntu)
New
Undecided
Unassigned

Bug Description

Steps to reproduce :
- Create the file /etc/udev/rules.d/80-usb_modeswitch.rules :
SYSFS{idVendor}=="19d2", SYSFS{idProduct}=="2000", RUN+="/usr/sbin/usb_modeswitch.sh '%b/%k/%s{idVendor}/%s{idProduct}/%s{manufacturer}/%s{product}/%s{serial}'"
- Create the file /usr/sbin/usb_modeswitch.sh :
echo "/usr/sbin/usb_modeswitch.tcl $1" > /tmp/usb_modeswitch.log
- Restart udev : $ /etc/init.d/udev restart
- Insert the GSM usb dongle (19d2:2000)
-> Read /tmp/usb_modeswitch.log to get the attributes replaced by udev.
It appears that :
- %k is replace by something non empty (1-1:1.0 in my case)
- %b and all attributes are replace by a empty string.

Expected results :
- all attributes should be replaced by the correct valued that can be found with the following command (in my case) : $ udevadm info -a -p /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-1

System :
- karmic alpha 5 (laptop with udev 146-1) or final Jaunty (desktop computer with udev 141-1.2)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.