On Fri, 03 Feb 2006 19:15:54 +0100, Maarten wrote:

> Only the third form prints any useful info, the first
> yields an error and the second one does give some little output, but
> alas nothing useful. (It is awful that the simple fact of omitting a
> trailing "/" makes that much of a difference):
> 
> server mnt # udevinfo -a -p /sys/class/tty/ttyUSB0/device
> couldn't get the class device
> 
> server mnt # udevinfo -a -p /sys/class/tty/ttyUSB0/device/
> 
>   looking at class device '/sys/class/tty/ttyUSB0/device':
>     KERNEL=="device"
>     SUBSYSTEM=="tty"
>     SYSFS{detach_state}=="0"
> 
> server mnt # udevinfo -a -p /sys/class/tty/ttyUSB0
> 
> device '/sys/class/tty/ttyUSB0' has major:minor 188:0
>   looking at class device '/sys/class/tty/ttyUSB0':
>     KERNEL=="ttyUSB0"
>     SUBSYSTEM=="tty"
>     SYSFS{dev}=="188:0"

You can let udevinfo generate the correct path information for you

udevinfo -a -p $(udevinfo -q path -n /dev/whatever)


-- 
Neil Bothwick

Don't let the computer bugs bite!

Attachment: signature.asc
Description: PGP signature

Reply via email to