A simple udev clone that's fast and lightweight.
For Debian/Ubuntu-based systems:
sudo apt install gcc makeFor Arch-based systems:
sudo pacman -S gcc makemakeThis produces the plugd binary in the current directory.
make installTip
You can use DESTDIR to change the place of installation, for example:
make install DESTDIR=../your-linux-distro-rootfsWarning
You probably will need to use sudo to install/uninstall plugd if you are not using DESTDIR:
sudo make installcp plugd ../your-linux-distro-rootfs/sbin#!/bin/sh
#...do some stuff
plugd --daemon
#...do some more stuff# Remove --daemon to run in foreground instead of the background.
plugd --daemonmake uninstallWarning
Again, you probably will need to use sudo to install/uninstall plugd if you are not using DESTDIR:
sudo make uninstallrm -f your-linux-distro-rootfs/sbin/plugd