Update installer

Took 6 minutes
This commit is contained in:
Tobias Hopp 2022-12-02 12:26:32 +01:00
parent 2a63cf9238
commit b1fe4e0953

View File

@ -158,12 +158,15 @@ if ! grep -w "disable_splash=1" /boot/config.txt; then
fi
echo "Setting no-logo..."
systemctl disable getty@tty3
systemctl disable getty@tty1.service
if ! grep -w "logo.nologo" /boot/cmdline.txt; then
echo "Backing up /boot/cmdline.txt to /root/cmdline.txt.bak"
cp /boot/cmdline.txt /root/cmdline.txt.bak
sed -i '1 s_$_ logo.nologo disable\_splash=1 quiet_' /boot/cmdline.txt
sed -i '1 s_$_ loglevel=3 logo.nologo disable\_splash=1 splash quiet plymouth.ignore-serial-consoles logo.nologo vt.global\_cursor_default=0_' /boot/cmdline.txt
#cp /tmp/cmdline.txt /boot/cmdline.txt
sed -i "1 s|$| vt.global_cursor_default=0|" /boot/cmdline.txt
sed -i '1 i\avoid_warnings=1' /boot/config.txt
fi
chown itender:itender -R /home/itender/