mirror of
https://github.com/iiab/iiab.git
synced 2025-02-15 04:32:11 +00:00
move discoverable inside service
This commit is contained in:
parent
b8436c1e3c
commit
0788563287
2 changed files with 10 additions and 1 deletions
|
@ -1,9 +1,13 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Bluetooth NEP PAN
|
Description=Bluetooth NEP PAN
|
||||||
After=br0.network
|
#After=br0.network
|
||||||
|
Before=network.target
|
||||||
|
After=network-pre.target
|
||||||
|
Requires=network-pre.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/bin/bt-network -s nap br0
|
ExecStart=/usr/bin/bt-network -s nap br0
|
||||||
|
ExecStartPost=/usr/local/bin/iiab-bt-pan-discoverable-on
|
||||||
Type=simple
|
Type=simple
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
|
5
roles/bluetooth/templates/iiab-bt-pan-discoverable-on.j2
Normal file
5
roles/bluetooth/templates/iiab-bt-pan-discoverable-on.j2
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
bluetoothctl <<EOF
|
||||||
|
discoverable on
|
||||||
|
EOF
|
Loading…
Reference in a new issue