]> git.ipfire.org Git - thirdparty/systemd.git/blame - README
[PATCH] added libsysfs code from sysutils-0.1.1-071803 release
[thirdparty/systemd.git] / README
CommitLineData
d2ce1817
GKH
1
2udev - a userspace implementation of devfs
3
4For more information on the design, and structure of this project, see the
5files in the docs/ directory.
6
7To use:
8
9- Edit the udev.h file and replace the following variables with values
10 that make sense for your system:
11 #define SYSFS_ROOT "/sys"
12 #define UDEV_ROOT "/home/greg/linux/udev/"
13 #define DEV_FILE "/dev"
14 #define MKNOD "/bin/mknod"
15 The only value most people will have to change is the UDEV_ROOT
16 variable, as I doubt you really want device nodes to be created in my
17 home directory :)
18
19- Run make to build the project.
20
21- Make sure sysfs is mounted.
22
23- Point /proc/sys/kernel/hotplug at the location of the udev binary that
24 is created. Then plug some block devices in, or other types of
25 devices that create dev files in sysfs. An easy way to do this,
26 without any hardware is to use the scsi_debug module to create virtual
27 scsi devices.
28
29- Watch as the nodes get created and removed.
30
31
32Yes this is a really rough first cut, I know. It's mostly a proof of
33concept that this can actually work. See the TODO file for a list of
34things left to be done.
35
36Any comment/questions/concerns please let me know.
37
38greg k-h
39greg@kroah.com