diff --git a/Installer.sh b/Installer.sh index 2deb677..2d19bdf 100644 --- a/Installer.sh +++ b/Installer.sh @@ -115,15 +115,16 @@ echo "127.0.1.1 $HOST" >> /etc/hosts if grep -q "ssid=" /etc/wpa_supplicant/wpa_supplicant.conf then - IP=`hostname -I` && IP=$(echo $IP | cut -d' ' -f2,3) + IP=`hostname -I` && IP=$(echo $IP | cut -d ' ' -f 1) rfkill unblock wifi else echo "country=NL" >> /etc/wpa_supplicant/wpa_supplicant.conf rfkill unblock wifi systemctl restart wpa_supplicant + TERM=ansi whiptail --title "Pi Automation" --infobox "Configuring Wireless lan, please wait." 8 78 ip link set wlan0 up sleep 30 - IP=`hostname -I` && IP=$(echo $IP | cut -d ' ' -f 1) + IP=`hostname -I` && IP=$(echo $IP | cut -d' ' -f2,3) fi if grep -q "Amsterdam" <<< "$TZDATA"; then