chiark / gitweb /
e55914de31a48056f6cacc3c0aecde20af27341a
[elogind.git] / extras / path_id / path_id.8
1 .TH PATH_ID 8 "April 2007" "" "Linux Administrator's Manual"
2 .SH NAME
3 path_id \- udev callout to provide the shortest possible unique hardware path
4 to a device for the Linux Persistent Device Naming scheme
5 .SH SYNOPSIS
6 DEVPATH=<devpath>; path_id
7
8 path_id <devpath>
9 .SH "DESCRIPTION"
10 .B path_id
11 is normally called from a udev rule, to provide udev a unique hardware path for
12 a device. Udev can use this information to create symlinks in /dev/ to the real
13 device node.
14 .SH EXAMPLES
15 For all block devices on a system:
16
17 .nf
18 for i in `find /sys/class/block`
19 do
20         DEVPATH="`echo $i | sed -e 's@^/sys\|/dev@@g'`"; path_id
21 done
22 .fi
23 .SH SEE ALSO
24 .BR udev (7)
25 .SH AUTHORS
26 Developed by Hannes Reinecke <hare@suse.de>.