[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: R: beep on slug



Hello,
as I wrote in my last mail, I really think the bus numbers are changing.
So I think the patch by Gordon is at least not enough.

#ls /sys/bus/usb/devices
1-0:1.0
1-1
1-1:1.0
1-2
1-2:1.0
1-2.4
1-2.4:1.0
2-0:1.0
3-0:1.0
usb1
usb2
usb3

#halt
(start the slug again then)

#ls /sys/bus/usb/devices
1-0:1.0
2-0:1.0
3-0:1.0
3-1
3-1:1.0
3-2
3-2:1.0
3-2.4
3-2.4:1.0
usb1
usb2
usb3

Maybe I am wrong, but do you see the difference with the filenames
without the end of :1.0,
first 1-1, 1-2 and 1-2.4
then 3-1, 3-2 and 3-2.4?

My udev rules seems to work:
SUBSYSTEM=="usb", DEVPATH=="*/[13]-[12]", ACTION=="add", PROGRAM="/usr/bin/leds disk-%n on"
SUBSYSTEM=="usb", DEVPATH=="*/[13]-[12]", ACTION=="remove", PROGRAM="/usr/bin/leds disk-%n off"

And I did not add similar rules regarding the slow hub.

Regards Michael


Reply to: