mirror of
https://notabug.org/Sages-of-Gensokyo/gensokyo_kappa-overlay
synced 2024-10-21 08:41:13 +02:00
8e6d619858
Signed-off-by: kuratsune <lightmynx@free.fr>
66 lines
1.9 KiB
Diff
66 lines
1.9 KiB
Diff
Les fichiers binaires usbguard/.git/index et usbguard-tmp/.git/index sont différents
|
|
diff -crB --new-file usbguard/openRC/conf.d/usbguard-dbus usbguard-tmp/openRC/conf.d/usbguard-dbus
|
|
*** usbguard/openRC/conf.d/usbguard-dbus 1970-01-01 01:00:00.000000000 +0100
|
|
--- usbguard-tmp/openRC/conf.d/usbguard-dbus 2018-04-27 10:12:23.721001263 +0200
|
|
***************
|
|
*** 0 ****
|
|
--- 1,2 ----
|
|
+ #Options, by default contains -s, which tell the dbus bridge to listen on the system bus
|
|
+ APPEND="-s"
|
|
diff -crB --new-file usbguard/openRC/usbguard usbguard-tmp/openRC/usbguard
|
|
*** usbguard/openRC/usbguard 2018-04-27 10:04:01.200283636 +0200
|
|
--- usbguard-tmp/openRC/usbguard 2018-04-27 10:13:32.168145556 +0200
|
|
***************
|
|
*** 1,12 ****
|
|
#!/sbin/openrc-run
|
|
|
|
depend() {
|
|
- # (Dependency information)
|
|
need localmount
|
|
after consolekit
|
|
after bootmisc
|
|
use logger
|
|
provide usb-access-control
|
|
}
|
|
|
|
start_pre() {
|
|
--- 1,12 ----
|
|
#!/sbin/openrc-run
|
|
|
|
depend() {
|
|
need localmount
|
|
after consolekit
|
|
after bootmisc
|
|
use logger
|
|
provide usb-access-control
|
|
+ provide usbguard
|
|
}
|
|
|
|
start_pre() {
|
|
diff -crB --new-file usbguard/openRC/usbguard-dbus usbguard-tmp/openRC/usbguard-dbus
|
|
*** usbguard/openRC/usbguard-dbus 1970-01-01 01:00:00.000000000 +0100
|
|
--- usbguard-tmp/openRC/usbguard-dbus 2018-04-27 10:11:17.633827466 +0200
|
|
***************
|
|
*** 0 ****
|
|
--- 1,20 ----
|
|
+ #!/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 $?
|
|
+ }
|