diff options
Diffstat (limited to 'scripts/scripts/bluetooth.sh')
-rwxr-xr-x | scripts/scripts/bluetooth.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/scripts/bluetooth.sh b/scripts/scripts/bluetooth.sh new file mode 100755 index 0000000..85b7f08 --- /dev/null +++ b/scripts/scripts/bluetooth.sh | |||
@@ -0,0 +1,14 @@ | |||
1 | #!/usr/bin/env bash | ||
2 | |||
3 | connections=$( hcitool con ) | ||
4 | devices=$( hcitool dev | wc -l ) | ||
5 | |||
6 | if [ $devices = 1 ] | ||
7 | then | ||
8 | echo -n "" | ||
9 | elif [[ $devices > 1 && $connections = "Connections:" ]] | ||
10 | then | ||
11 | echo -n "" | ||
12 | else | ||
13 | echo -n "" | ||
14 | fi | ||