functions: move add_udev_rule() from systemd hook
Created by: eworm-de
This function can be used for setups with systemd in initramfs (hook
systemd) or without (hook udev). To avoid code duplication move
the code here.
Due to an influx of spam, we have had to require each new account to be manually approved. Please register an account and then write an email to accountsupport@archlinux.org to get it approved. Sorry for the inconvenience.
Created by: eworm-de
This function can be used for setups with systemd in initramfs (hook
systemd) or without (hook udev). To avoid code duplication move
the code here.