X-Git-Url: https://zdv2.bktei.com/gitweb/EVA-2020-02-2.git/blobdiff_plain/1b2cabb898fa4583a3c74770810ec109a1ae17ec..d7ce2531a8271e2110535ddc383130590e6142bb:/uninstall.sh diff --git a/uninstall.sh b/uninstall.sh index 0709cc0..aaac11b 100755 --- a/uninstall.sh +++ b/uninstall.sh @@ -22,4 +22,12 @@ fi cd .. +printf "Disabling serial..\n" +# Enable serial terminal over /dev/ttyAMA0 +raspi-config nonint do_serial 0 +# Disable serial port +raspi-config nonint set_config_var enable_uart 0 /boot/config.txt +# Switch serial port back to miniUART +sed -i 's/^dtoverlay=pi3-miniuart-bt/#dtoverlay=pi3-miniuart-bt/' /boot/config.txt + printf "Done!\n"