From 4547c5b25966a3723e490945db649a91c8bc31c8 Mon Sep 17 00:00:00 2001 From: spl Date: Mon, 23 May 2016 17:43:13 +0100 Subject: [PATCH] Function added to get wifi country. --- raspi-config | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/raspi-config b/raspi-config index 4e8a943..45a4be2 100755 --- a/raspi-config +++ b/raspi-config @@ -272,6 +272,10 @@ do_change_timezone() { dpkg-reconfigure tzdata } +get_wifi_country() { + grep country= /etc/wpa_supplicant/wpa_supplicant.conf | cut -d "=" -f 2 +} + do_configure_wifi_country() { oIFS="$IFS" if [ "$INTERACTIVE" = True ]; then