diff --git a/arch-install b/arch-install index 9a11584..13e0bef 100755 --- a/arch-install +++ b/arch-install @@ -1110,11 +1110,7 @@ if [ "${update}" != "n" ] && [ "${offline}" == "n" ] || [ "${installationfehler} if [ "$graphical" != "n" ] then cp /opt/${repo}/arch-graphical-install-auto ${mountpoint}/root/arch-graphical-install-auto - if [ "${version}" == "libre" ]; then - arch-chroot ${mountpoint} /root/arch-graphical-install-auto libre - else - arch-chroot ${mountpoint} /root/arch-graphical-install-auto voll - fi + arch-chroot ${mountpoint} /root/arch-graphical-install-auto ${version} fi fi diff --git a/update.sh b/update.sh index 6c2f37e..81b2198 100755 --- a/update.sh +++ b/update.sh @@ -9,6 +9,8 @@ echo "Version : Fr 22. Dez 00:00:41 CET 2017" WEBADDRESS="https://github.com/simono41/SpectreOS.git" repo="SpectreOS" user="user1" +hostname="$(cat /etc/hostname)" +version="${hostname#*-}" if [[ $EUID -ne 0 ]]; then echo "This script must be run as root" 1>&2 @@ -43,7 +45,7 @@ then echo "Git is not installet" pacman -S git --needed --noconfirm fi - /opt/${repo}/arch-graphical-install-auto "$1" "$2" "$3" + /opt/${repo}/arch-graphical-install-auto "${version}" "$2" "$3" read -p "Aktualisierung erfolgreich Abgeschlossen. Wollen sie den PC NEUSTARTEN?: [Y/n] " sicherheitsabfrage if [ "$sicherheitsabfrage" != "n" ] then