Tuesday, August 30, 2011

[Level 2] How to simulate udevinfo in Ubuntu 11.04

When you try to use command udevinfo in Ubuntu 11.04, you would get the response "udevinfo: command not found".
How to simulate the command udevinfo?
Use command udevinfo with info option.
# udevadm info -q all -n /dev/video0
You could also create a function named udevinfo as you like
# udevinfo () { udevadm info -a -p `udevadm info -q path -n "$1"`; }
# udevinfo /dev/video0
Wish this helps.
Stanley Huang