X-Git-Url: https://zdv2.bktei.com/gitweb/EVA-2020-02-2.git/blobdiff_plain/1b2cabb898fa4583a3c74770810ec109a1ae17ec..0c5111f2f7b09f9e24ff9165aa3ad7ae803fb6a7:/uninstall.sh?ds=sidebyside 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"