aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
blob: cc6c4a594764867768550e0ae19b504af63448e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# NetLink DEVice manager

## Installation

	# edit config.mk according to your needs
	% make
	% make PREFIX=/ MANPREFIX=/usr/share/man install

## nldev + mdev 

For getting nldev and mdev to work use the following instructions.

	% cd /tmp
	% git clone git://busybox.net/busybox.git
	% cd busybox
	% make
	% cp busybox /bin
	% cd /bin
	% ln -s busybox mdev

Now copy over all the required files.

	% cd $nldevdir
	% mkdir -p /lib/mdev
	% mkdir -p /etc
	% cp mdev/etc/mdev.conf /etc
	% cp mdev/lib/* /lib/mdev 

In you init scripts you will need to trigger:

	% run_nldev &
	% nltrigger all

By default *run_nldev* will log to the *daemon* facility and the
notice level. This can be adjusted by editing *run_nldev* direct-
ly.

### CAUTION

Because of the asynchronous initialisation of every device that
needs some firmware or some that just take some time to appear
in the kernel, don't assume interfaces to be there after startup.
Always add some step to check for the devices to be there or do
them per service.

## udev replacement

Many application directly depend on libudev and so need the
overengineered backends of udev to work. Most of this (like X11)
can be avoided by having symlinks to static devices and leaving
all the automatism in one place instead of many.

Scripts that call the udev tools directly will need to be patched,
like laptop-mode-utils.

## advanced nldev

As shown in the manpages does nldev allow some more flexibility,
but was mainly written to be a missing piece in replacing udevd.

For example many instances of nldev could be run, call scripts
with simpler logic than mdev and doing less.

## nlmon

On http://git.r-36.net/nlmon/ you will find the little brother
of nldev, which can be run without root rights as user and used
to run scripts on certain events.


Have fun!