Skip to content

asmileyguy/plugd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

plugd

A simple udev clone that's fast and lightweight.

How to compile plugd?

We first need to install some tools:

For Debian/Ubuntu-based systems:

sudo apt install gcc make

For Arch-based systems:

sudo pacman -S gcc make

From the root of the source tree:

make

This produces the plugd binary in the current directory.

How to install plugd?

After compiling, you can run:

make install

Tip

You can use DESTDIR to change the place of installation, for example:

make install DESTDIR=../your-linux-distro-rootfs

Warning

You probably will need to use sudo to install/uninstall plugd if you are not using DESTDIR:

sudo make install

You can also copy the plugd executable that was compiled manually:

cp plugd ../your-linux-distro-rootfs/sbin

How to setup plugd?

In your init script (let's say BusyBox init):

#!/bin/sh
#...do some stuff
plugd --daemon
#...do some more stuff

If you don't wanna do that, you can just run it manually in the shell:

# Remove --daemon to run in foreground instead of the background.
plugd --daemon

How to uninstall plugd?

Just run:

make uninstall

Warning

Again, you probably will need to use sudo to install/uninstall plugd if you are not using DESTDIR:

sudo make uninstall

You can also remove it manually:

rm -f your-linux-distro-rootfs/sbin/plugd

About

A simple udev clone that's fast and lightweight.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages