script to toggle bluetooth service (TODO: pripojeni sluchatek)

This commit is contained in:
TUNQRT 2025-09-30 16:32:32 +02:00
parent 57c459f5ec
commit d2d606417f
1 changed files with 3 additions and 0 deletions

3
toggle_bt.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
[[ "$(systemctl is-active bluetooth)" == 'active' ]] && $(systemctl stop bluetooth || :) || systemctl restart bluetooth