mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 14:16:40 +00:00
bluez: use own systemd service files for support with our addon
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
6bc7e8dbac
commit
e5152bcb3a
@ -71,6 +71,11 @@ pre_configure_target() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
post_makeinstall_target() {
|
post_makeinstall_target() {
|
||||||
|
rm -rf $INSTALL/lib/systemd
|
||||||
|
}
|
||||||
|
|
||||||
|
post_install() {
|
||||||
|
enable_service bluetooth-monitor.path
|
||||||
enable_service bluetooth.service
|
enable_service bluetooth.service
|
||||||
}
|
}
|
||||||
|
|
||||||
|
9
packages/network/bluez/system.d/bluetooth-monitor.path
Normal file
9
packages/network/bluez/system.d/bluetooth-monitor.path
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Bluetooth configfile monitor
|
||||||
|
|
||||||
|
[Path]
|
||||||
|
PathModified=/storage/.cache/services/bluez.conf
|
||||||
|
PathModified=/run/openelec/debug.conf
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=bluetooth.target
|
10
packages/network/bluez/system.d/bluetooth-monitor.service
Normal file
10
packages/network/bluez/system.d/bluetooth-monitor.service
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Bluetooth configfile monitor
|
||||||
|
Requires=bluetooth.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
ExecStart=/bin/systemctl restart bluetooth.service
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=bluetooth.target
|
17
packages/network/bluez/system.d/bluetooth.service
Normal file
17
packages/network/bluez/system.d/bluetooth.service
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Bluetooth service
|
||||||
|
Requires=bluetooth.target
|
||||||
|
|
||||||
|
ConditionPathExists=/storage/.cache/services/bluez.conf
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
NotifyAccess=main
|
||||||
|
# EnvironmentFile=/storage/.cache/services/avahi.conf
|
||||||
|
EnvironmentFile=-/run/openelec/debug.conf
|
||||||
|
ExecStart=/usr/lib/bluetooth/bluetoothd $BLUETOOTH_DEBUG
|
||||||
|
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_RAW
|
||||||
|
LimitNPROC=1
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=bluetooth.target
|
||||||
|
Alias=dbus-org.bluez.service
|
Loading…
x
Reference in New Issue
Block a user