mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 14:16:40 +00:00
bluez: default enable bluetooth services
This commit is contained in:
parent
46f6d4e931
commit
40622b2cea
0
packages/network/bluez/default.d/bluez.conf
Normal file
0
packages/network/bluez/default.d/bluez.conf
Normal file
@ -56,9 +56,13 @@ post_makeinstall_target() {
|
|||||||
sed -i $INSTALL/etc/bluetooth/main.conf \
|
sed -i $INSTALL/etc/bluetooth/main.conf \
|
||||||
-e "s|^#\[Policy\]|\[Policy\]|g" \
|
-e "s|^#\[Policy\]|\[Policy\]|g" \
|
||||||
-e "s|^#AutoEnable.*|AutoEnable=true|g"
|
-e "s|^#AutoEnable.*|AutoEnable=true|g"
|
||||||
|
|
||||||
|
mkdir -p $INSTALL/usr/share/services
|
||||||
|
cp -P $PKG_DIR/default.d/*.conf $INSTALL/usr/share/services
|
||||||
}
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
|
enable_service bluetooth-defaults.service
|
||||||
enable_service bluetooth.service
|
enable_service bluetooth.service
|
||||||
enable_service obex.service
|
enable_service obex.service
|
||||||
}
|
}
|
||||||
|
11
packages/network/bluez/system.d/bluetooth-defaults.service
Normal file
11
packages/network/bluez/system.d/bluetooth-defaults.service
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Bluetooth defaults
|
||||||
|
After=local-fs.target
|
||||||
|
|
||||||
|
ConditionPathExists=!/storage/.cache/services/bluez.conf
|
||||||
|
ConditionPathExists=!/storage/.cache/services/bluez.disabled
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
ExecStart=/bin/sh -c 'cp /usr/share/services/bluez.conf /storage/.cache/services/'
|
||||||
|
RemainAfterExit=yes
|
@ -1,6 +1,7 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Bluetooth service
|
Description=Bluetooth service
|
||||||
Requires=bluetooth.target
|
After=syslog.target bluetooth-defaults.service
|
||||||
|
Requires=bluetooth-defaults.service
|
||||||
|
|
||||||
ConditionPathExists=/storage/.cache/services/bluez.conf
|
ConditionPathExists=/storage/.cache/services/bluez.conf
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user