Skip to content

Commit 2ab0516

Browse files
committed
fix for iwconfig output on debian buster
1 parent b9f6f24 commit 2ab0516

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/bt-nap.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44
get_wlan_connection() {
5-
wlan_config=`iwconfig 2>&1 | grep ESSID`
5+
wlan_config=`iwconfig 2>&1 | grep ESSID:off/any`
66
}
77

88
get_paired_devices() {
@@ -72,7 +72,7 @@ wlan_config=
7272
while true;
7373
do
7474
get_wlan_connection
75-
if [[ -z "${wlan_config}" ]]; then
75+
if [[ ! -z "${wlan_config}" ]]; then
7676
echo "no wlan connection, trying bt"
7777
try_connect_bt
7878
else

0 commit comments

Comments
 (0)