From d2d606417f2a062c6ef357aafe814c18cd85a04b Mon Sep 17 00:00:00 2001 From: TUNQRT Date: Tue, 30 Sep 2025 16:32:32 +0200 Subject: [PATCH] script to toggle bluetooth service (TODO: pripojeni sluchatek) --- toggle_bt.sh | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 toggle_bt.sh diff --git a/toggle_bt.sh b/toggle_bt.sh new file mode 100755 index 0000000..0650108 --- /dev/null +++ b/toggle_bt.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +[[ "$(systemctl is-active bluetooth)" == 'active' ]] && $(systemctl stop bluetooth || :) || systemctl restart bluetooth