Skip to content

Commit

Permalink
Check that AP is supported by grepping under "Supported interface mod…
Browse files Browse the repository at this point in the history
…es" only, fixes #476
  • Loading branch information
kueblc committed Jan 6, 2020
1 parent 795e002 commit 9fc1eae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/setup_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ check_eula () {
}

check_config () {
if ! iw list | grep -q "* AP"; then
if ! 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
Expand Down

0 comments on commit 9fc1eae

Please sign in to comment.