diff --git a/install.sh b/install.sh index 35f0602..d5861df 100644 --- a/install.sh +++ b/install.sh @@ -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: