mirror of
https://github.com/iiab/iiab.git
synced 2025-02-14 20:22:08 +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]
|
||||
Description=Bluetooth NEP PAN
|
||||
After=br0.network
|
||||
#After=br0.network
|
||||
Before=network.target
|
||||
After=network-pre.target
|
||||
Requires=network-pre.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/bt-network -s nap br0
|
||||
ExecStartPost=/usr/local/bin/iiab-bt-pan-discoverable-on
|
||||
Type=simple
|
||||
|
||||
[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