From 6e280be55821692423af29a6906890e5bcd5af4c Mon Sep 17 00:00:00 2001 From: Beeranco <49772805+Beeranco@users.noreply.github.com> Date: Tue, 15 Aug 2023 21:22:13 +0200 Subject: [PATCH] Update Installer.sh Fixed Wifi NOW FOR GOOD I PROMISE --- Installer.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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