Add systemd bluetooth scripts
This commit is contained in:
parent
900b5a3219
commit
7cc3092896
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=Turn bluetooth power off
|
||||
Before=hibernate.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/bluetoothctl power off
|
||||
|
||||
[Install]
|
||||
WantedBy=hibernate.target
|
|
@ -0,0 +1,11 @@
|
|||
[Unit]
|
||||
Description=Turn bluetooth power on
|
||||
After=hibernate.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStartPre=/bin/sleep 5s
|
||||
ExecStart=/usr/bin/bluetoothctl power on
|
||||
|
||||
[Install]
|
||||
WantedBy=hibernate.target
|
Loading…
Reference in New Issue