Added handling for udev and systemd

Most of the cases we would choose udev instead of systemd. But maybe in the
future we can use systemd.

Signed-off-by: Christian Ege <k4230r6@gmail.com>