]> git.ipfire.org Git - thirdparty/systemd.git/blame - udevinfo.8
udev: fix netdev RUN handling
[thirdparty/systemd.git] / udevinfo.8
CommitLineData
7dae391f 1.TH UDEVINFO 8 "January 2004" "" "Linux Administrator's Manual"
e31474a1
GKH
2.SH NAME
3udevinfo \- retrieve information from udev
4.SH SYNOPSIS
5.B udevinfo
758f236f 6.RI "[\-q " query_type " \-p " sysfs_path "] [\-drVh]"
e31474a1
GKH
7.SH "DESCRIPTION"
8.B udevinfo
b86f56ff
KS
9allows users to query the udev database for information on any device
10currently present on the system. It also provides a way to query any device
11in the sysfs tree to help creating
e31474a1 12.B udev
b86f56ff 13rules.
e31474a1
GKH
14.SH "OPTIONS"
15.TP
758f236f 16.B \-V
e31474a1
GKH
17Print the version information.
18.TP
758f236f 19.B \-r
b86f56ff 20Print the
e31474a1 21.B udev_root
31fd3403
KS
22directory. When used in conjunction with a query for the node name or the
23symlink names, the
e31474a1 24.B udev_root
31fd3403 25will be prepended to query result.
e31474a1 26.TP
758f236f 27.BI \-q " query_type"
fc238cff
KS
28Query the database for specified value of a created device node or network
29interface.
758f236f 30.RB Needs " \-p " or " \-n " specified.
01fc6768 31.br
e31474a1 32Valid types are:
2b41e68a 33.BR name ", " symlink ", " path " or " all.
e31474a1 34.TP
758f236f 35.BI \-p " sysfs_path"
e31474a1
GKH
36Specify the sysfs path of the device to query.
37.TP
758f236f 38.BI \-n " name"
fc238cff
KS
39Specify the name of the node, the symlink or the network interface for the
40device to query. Partition names generated with the NAME{all_partitons} option
41can not be queried, the main device must be used instead.
e31474a1 42.TP
758f236f 43.B \-a
01fc6768 44Print all
16378373 45.BI SYSFS{ filename }
b86f56ff 46attributes along the device chain. Useful for finding
01fc6768 47unique attributes to compose a rule.
758f236f 48.RB Needs " \-p " specified.
01fc6768 49.TP
9fe1a96d
KS
50.B \-d
51Print the relationship between the devpath and the node name for all devices
52currently available in the database.
53.TP
758f236f 54.B \-h
e31474a1
GKH
55Print help text.
56.SH "FILES"
57.nf
58/etc/udev/* udev config files
59.fi
60.LP
61.SH "SEE ALSO"
62.BR udev (8)
63.SH AUTHORS
64.B udevinfo
65was developed primarily by Kay Sievers <kay.sievers@vrfy.org>, with help
66from others.