Skip to content

Commit

Permalink
[Bugfix] setup_autohotspot.sh for multiple wifi country codes, use fi…
Browse files Browse the repository at this point in the history
…rst (#2150)
  • Loading branch information
ben0r33 authored Dec 11, 2023
1 parent dd7f6e9 commit afc3067
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion installation/routines/setup_autohotspot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ AUTOHOTSPOT_TARGET_PATH="/usr/bin/autohotspot"
_get_interface() {
# interfaces may vary
WIFI_INTERFACE=$(iw dev | grep "Interface"| awk '{ print $2 }')
WIFI_REGION=$(iw reg get | grep country | awk '{ print $2}' | cut -d: -f1)
WIFI_REGION=$(iw reg get | grep country | head -n 1 | awk '{ print $2}' | cut -d: -f1)

# fix for CI runs on docker
if [ "${CI_RUNNING}" == "true" ]; then
Expand Down

0 comments on commit afc3067

Please sign in to comment.