Function added to get wifi country.

This commit is contained in:
spl 2016-05-23 17:43:13 +01:00
parent 1accb9fcc9
commit 4547c5b259
1 changed files with 4 additions and 0 deletions

View File

@ -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