From 76aacd88e68ac5a81dfa6aa8f097b9231699a567 Mon Sep 17 00:00:00 2001 From: Wojciech Nizinski Date: Sat, 19 Dec 2020 20:57:16 +0100 Subject: [PATCH] setup_checks.sh: add sudo to iw call --- scripts/setup_checks.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/setup_checks.sh b/scripts/setup_checks.sh index f806274..c01adf0 100755 --- a/scripts/setup_checks.sh +++ b/scripts/setup_checks.sh @@ -29,7 +29,7 @@ check_eula () { } check_config () { - if ! iw list | grep -A 10 "Supported interface modes" | grep -q -e "\* AP$"; then + if ! sudo iw list | grep -A 10 "Supported interface modes" | grep -q -e "\* AP$"; then echo "AP mode not supported!" echo "Please attach a WiFi card that supports AP mode." exit 1