Merge branch 'master' of github.com:pimoroni/enviroplus-python
[EVA-2020-02-2.git] / uninstall.sh
index 0709cc0625f12119b9b596838f5ce14317d61cfe..aaac11b280bdfc32ddb60df03aaa2a3ad55cd065 100755 (executable)
@@ -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"