diff --git a/debian/changelog b/debian/changelog index 9671686..b22300a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +raspi-config (20190429) buster; urgency=medium + + * Update do_wifi_country + - Enable wifi regardless of whether /run/wifi-country-unset exists + -- Serge Schneider Mon, 29 Apr 2019 14:52:56 +0100 + raspi-config (20190424) stretch; urgency=medium * Add Compton option to advanced options diff --git a/raspi-config b/raspi-config index 165ec7c..e070592 100755 --- a/raspi-config +++ b/raspi-config @@ -460,16 +460,16 @@ do_wifi_country() { fi if [ $? -eq 0 ];then wpa_cli -i "$IFACE" set country "$COUNTRY" + wpa_cli -i "$IFACE" save_config > /dev/null 2>&1 if ! iw reg set "$COUNTRY" 2> /dev/null; then ASK_TO_REBOOT=1 fi - if [ -f /run/wifi-country-unset ] && hash rfkill 2> /dev/null; then + if hash rfkill 2> /dev/null; then rfkill unblock wifi fi if [ "$INTERACTIVE" = True ]; then whiptail --msgbox "Wi-fi country set to $COUNTRY" 20 60 1 fi - wpa_cli -i "$IFACE" save_config > /dev/null 2>&1 fi }