diff --git a/arch-graphical-install-auto.sh b/arch-graphical-install-auto.sh index 699691c..3f73cd3 100755 --- a/arch-graphical-install-auto.sh +++ b/arch-graphical-install-auto.sh @@ -16,7 +16,7 @@ SUDOERS="/etc/sudoers" autostartdesktop=sway repo=SpectreOS repo1=shell-scripte-code -hostname=SpectreOS +hostname=$(hostnamectl hostname) user=user1 userpass=user1 arch=$(uname -m) diff --git a/arch-install.sh b/arch-install.sh index 371c7a5..d3a960f 100755 --- a/arch-install.sh +++ b/arch-install.sh @@ -679,6 +679,11 @@ function installation { fi #hostname + hostname=SpectreOS + if [ "${amd}" == "deck" ]; then + hostname="${hostname}-deck" + fi + echo "${hostname}" > ${mountpoint}/etc/hostname echo "hostname=\"${hostname}\"" > /etc/conf.d/hostname @@ -1215,7 +1220,6 @@ function abfrage() { echo "You can choose with an online installation, which distrubtion you want to install!!!" fi - hostname=spectreos echo "WARNING!!! Diese Methode ist wegen einer neuen UDEV Rule unnötig geworden der alle angeschlossen Laufwerke automatisch mountet ;-)" read -p "Should you an disk added to your fstab? : [y/udevautomountrule/N] " autodisk