Update Installer.sh

Fixed wifi? Maybe?
This commit is contained in:
Beeranco 2023-08-15 19:00:22 +02:00 committed by GitHub
parent 7248c5cd44
commit 7c5f8eb1a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -118,9 +118,12 @@ if grep -q "ssid=" /etc/wpa_supplicant/wpa_supplicant.conf
IP=`hostname -I` && IP=$(echo $IP | cut -d' ' -f2,3)
rfkill unblock wifi
else
IP=`hostname -I` && IP=$(echo $IP | cut -d ' ' -f 1)
echo "country=NL" >> /etc/wpa_supplicant/wpa_supplicant.conf
rfkill unblock wifi
systemctl restart wpa_supplicant
ip link set wlan0 up
sleep 30
IP=`hostname -I` && IP=$(echo $IP | cut -d ' ' -f 1)
fi
if grep -q "Amsterdam" <<< "$TZDATA"; then
@ -188,7 +191,7 @@ fi
$PKGUD
$PKRM manpages* p7zip* vim* pigz* strace* rng-tools* manpages* triggerhappy*
apt list --upgradeable 2>/dev/null | cut -d/ -f1 | grep -v Listing >> /tmp/install.list
echo "ufw" >> /tmp/install.list
echo "ufw rsync" >> /tmp/install.list
xargs < /tmp/install.list xargs $PKGI
$PKARM