add other hostname for the steam deck

This commit is contained in:
user 2023-06-01 08:58:19 +02:00
parent 38593c89f9
commit 55bf362df3
2 changed files with 6 additions and 2 deletions

View file

@ -16,7 +16,7 @@ SUDOERS="/etc/sudoers"
autostartdesktop=sway autostartdesktop=sway
repo=SpectreOS repo=SpectreOS
repo1=shell-scripte-code repo1=shell-scripte-code
hostname=SpectreOS hostname=$(hostnamectl hostname)
user=user1 user=user1
userpass=user1 userpass=user1
arch=$(uname -m) arch=$(uname -m)

View file

@ -679,6 +679,11 @@ function installation {
fi fi
#hostname #hostname
hostname=SpectreOS
if [ "${amd}" == "deck" ]; then
hostname="${hostname}-deck"
fi
echo "${hostname}" > ${mountpoint}/etc/hostname echo "${hostname}" > ${mountpoint}/etc/hostname
echo "hostname=\"${hostname}\"" > /etc/conf.d/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!!!" echo "You can choose with an online installation, which distrubtion you want to install!!!"
fi fi
hostname=spectreos
echo "WARNING!!! Diese Methode ist wegen einer neuen UDEV Rule unnötig geworden der alle angeschlossen Laufwerke automatisch mountet ;-)" 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 read -p "Should you an disk added to your fstab? : [y/udevautomountrule/N] " autodisk