diff --git a/RPI2/Ubuntu/disable_console.sh b/RPI2/Ubuntu/disable_console.sh index 747b55d5..73e05a2c 100755 --- a/RPI2/Ubuntu/disable_console.sh +++ b/RPI2/Ubuntu/disable_console.sh @@ -15,6 +15,9 @@ echo "Disabling Serial Console to ttyS0" tput sgr0 systemctl mask serial-getty@ttyS0.service -perl -pi -e 's/bootdelay=1/bootdelay=-2/g' /boot/firmware/uboot.env + +#copy uboot.env configuration to disable uboot wait for key +cp uboot.env /boot/firmware + perl -pe 's/console=ttyAMA0,115200//' -i /boot/config-5.3.0-1017-raspi2 perl -pe 's/console=ttyAMA0,115200//' -i /boot/config-5.3.0-1018-raspi2 diff --git a/RPI2/Ubuntu/uboot.env b/RPI2/Ubuntu/uboot.env new file mode 100755 index 00000000..162e4c59 Binary files /dev/null and b/RPI2/Ubuntu/uboot.env differ