nldev

NetLink DEVice manager; a lightweight netlink frontend for mdev.
git clone git://r-36.net/nldev
Log | Files | Refs | README | LICENSE

README.md (1812B)


      1 # NetLink DEVice manager
      2 
      3 ## Installation
      4 
      5 	# edit config.mk according to your needs
      6 	% make
      7 	% make PREFIX=/ MANPREFIX=/usr/share/man install
      8 
      9 ## nldev + mdev 
     10 
     11 For getting nldev and mdev to work use the following instructions.
     12 
     13 	% cd /tmp
     14 	% git clone git://busybox.net/busybox.git
     15 	% cd busybox
     16 	% make
     17 	% cp busybox /bin
     18 	% cd /bin
     19 	% ln -s busybox mdev
     20 
     21 Now copy over all the required files.
     22 
     23 	% cd $nldevdir
     24 	% mkdir -p /lib/mdev
     25 	% mkdir -p /etc
     26 	% cp mdev/etc/mdev.conf /etc
     27 	% cp mdev/lib/* /lib/mdev 
     28 
     29 In you init scripts you will need to trigger:
     30 
     31 	% run_nldev &
     32 	% nltrigger all
     33 
     34 By default *run_nldev* will log to the *daemon* facility and the
     35 notice level. This can be adjusted by editing *run_nldev* direct-
     36 ly.
     37 
     38 ### CAUTION
     39 
     40 Because of the asynchronous initialisation of every device that
     41 needs some firmware or some that just take some time to appear
     42 in the kernel, don't assume interfaces to be there after startup.
     43 Always add some step to check for the devices to be there or do
     44 them per service.
     45 
     46 ## udev replacement
     47 
     48 Many application directly depend on libudev and so need the
     49 overengineered backends of udev to work. Most of this (like X11)
     50 can be avoided by having symlinks to static devices and leaving
     51 all the automatism in one place instead of many.
     52 
     53 Scripts that call the udev tools directly will need to be patched,
     54 like laptop-mode-utils.
     55 
     56 ## advanced nldev
     57 
     58 As shown in the manpages does nldev allow some more flexibility,
     59 but was mainly written to be a missing piece in replacing udevd.
     60 
     61 For example many instances of nldev could be run, call scripts
     62 with simpler logic than mdev and doing less.
     63 
     64 ## nlmon
     65 
     66 On http://git.r-36.net/nlmon/ you will find the little brother
     67 of nldev, which can be run without root rights as user and used
     68 to run scripts on certain events.
     69 
     70 
     71 Have fun!
     72