aboutsummaryrefslogtreecommitdiffstats
path: root/btle-advise.service
blob: 1a34237998464a96a1c0754f5bd8309d7f38f5a4 (plain)
1
2
3
4
5
6
7
8
[Unit]
Description=activates advertising of BlueTooth Low-Energy on hci0

[Service]
Type=oneshot
ExecStart=/bin/bash -c "rfkill list|sed '/[bB]luetooth/!d;s/:.*//'|xargs -n1 rfkill unblock"
ExecStart=/bin/bash -c "hcitool dev|tail -n+2|cut -f2|xargs -n1 -IX hciconfig X leadv"