install.sh aktualisiert

This commit is contained in:
2024-10-16 13:13:54 +02:00
parent 8cb69931a6
commit 1f99185b38

View File

@@ -41,7 +41,7 @@ echo -e "${GREEN}✔${NC} Root login disabled..."
echo -e "${RED}${NC} Copying required files..."
sudo rm ./rps-light-pxe/.gitignore ./rps-light-pxe/LICENSE ./rps-light-pxe/README.md >/dev/null 2>&1
sudo cp -r ./rps-light-pxe/ / >/dev/null 2>&1
sudo rsync -axHAXS --numeric-ids --info=progress2 ./rps-light-pxe/* / >/dev/null 2>&1
echo -e "${GREEN}${NC} Required files copied..."
echo -e "${RED}${NC} Setting file permissions..."
@@ -70,15 +70,6 @@ echo -e "${GREEN}✔${NC} Installer cleaned up..."
echo -e "${GREEN}${NC} Installation complete. Press any key to reboot."
read -n 1 -s
sudo mkdir -p /etc/systemd/system/getty@tty1.service.d
sudo tee /etc/systemd/system/getty@tty1.service.d/override.conf > /dev/null << 'EOF'
[Service]
ExecStart=
ExecStart=-/sbin/agetty --autologin loginuser --noclear %I $TERM
EOF
sudo systemctl daemon-reload
sudo systemctl restart getty@tty1
sudo systemctl enable getty@tty1
sudo reboot
# Version 1.0: