From 6648328d02aa72793d1d390d35428110cdc8ad5e Mon Sep 17 00:00:00 2001 From: user1 Date: Wed, 29 Mar 2023 23:26:17 +0200 Subject: [PATCH] add default locales and fix check internet connections --- arch-install.sh | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/arch-install.sh b/arch-install.sh index 6fc684d..11ec492 100755 --- a/arch-install.sh +++ b/arch-install.sh @@ -774,6 +774,11 @@ function grubinstall() { parameter="${parameter}cryptkey=UUID=${usbkeyuuid}:${usbkeydateisystem}:\/archkey " fi + [[ -z "${autostartdesktop}" ]] && autostartdesktop=sway + [[ -z "${lang}" ]] && lang=de_DE + [[ -z "${keytable}" ]] && keytable=de + [[ -z "${tz}" ]] && tz=Europe/Berlin + parameter="${parameter}autostartdesktop=${autostartdesktop} lang=${lang} keytable=${keytable} tz=${tz} " sed -i '/GRUB_CMDLINE_LINUX=/d' ${mountpoint}/etc/default/grub @@ -1430,7 +1435,7 @@ if [ "${fastinstall}" == "y" ] && [ "${fastinstallnext}" != "y" ]; then /opt/${repo}/arch-install.sh "${1} fastinstallnext=y " exit 0 elif [ "${phaseone}" != "n" ] && [ "${fastinstallnext}" != "y" ]; then - if wget -qO- ipv4.icanhazip.com 1>/dev/null 2>&1; then + if ping -q -c 1 -W 1 8.8.8.8 >/dev/null; then read -p "Should I look at the internet for a new install script and then run it ?: [Y/n] " update if [ "${update}" == "debug" ] then @@ -1440,13 +1445,7 @@ elif [ "${phaseone}" != "n" ] && [ "${fastinstallnext}" != "y" ]; then then read -p "Should I update youre packages and then run it ?: [y/N] " updatepackages if [ "${updatepackages}" == "y" ]; then - echo "Please dont update the linux kernel!!!" - if [ -f /opt/${repo}/packages.txt ]; then - pacman -Syu $(cat /opt/${repo}/packages.txt) --noconfirm --needed --ignore linux - else - echo "Kann keine neuen Packete nachinstallieren weil die base.txt nicht gefunden werden kann!!" - echo "Es kann sein das dass Programm nicht korrekt funktioniert!!!" - fi + pacman -Sy arch-install-scripts squashfs-tools dosfstools libisoburn grub efibootmgr dosfstools gptfdisk cronie memtest86+ fi gitclone /opt/${repo}/arch-install.sh "${1} phaseone=n "