mirror of
https://notabug.org/Sages-of-Gensokyo/gensokyo_kappa-overlay
synced 2025-01-18 20:31:14 +01:00
ff9ef16c55
-Added files needed for openRC support. (init scripts and configuration files) -Updated ebuild to install them. TODO: do not install openRC support files if systemD USE flag is set. This will probably never be done because if you are crasy enough to use systemD, you should use other ebuilds you can find on internet. (And i don't care about systemD)
21 lines
523 B
Plaintext
21 lines
523 B
Plaintext
#!/sbin/openrc-run
|
|
|
|
depend() {
|
|
need localmount
|
|
need dbus
|
|
need usbguard
|
|
need usb-access-control
|
|
}
|
|
|
|
start() {
|
|
ebegin "Starting usbguard dbus bridge"
|
|
start-stop-daemon --start --background --make-pidfile --pidfile /var/run/usbguard-dbus.pid --exec /usr/sbin/usbguard-dbus -- $APPEND
|
|
eend $?
|
|
}
|
|
|
|
stop() {
|
|
ebegin "Stopping usbguard dbus bridge"
|
|
start-stop-daemon --stop --background --make-pidfile --pidfile /var/run/usbguard-dbus.pid --exec /usr/sbin/usbguard-dbus -- $APPEND
|
|
eend $?
|
|
}
|