From 85f55031745524d9df28415a3386411ff3702866 Mon Sep 17 00:00:00 2001 From: Yasin Kaya Date: Fri, 27 Nov 2020 09:48:41 +0000 Subject: [PATCH] isnatll script is compatible with miniuart (ttyS0 port) --- install.sh | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index e2d63f4..4299b2f 100755 --- a/install.sh +++ b/install.sh @@ -170,7 +170,25 @@ read devicename colored_echo "Your input is: $devicename" ${GREEN} if grep -q "ttyS0" <<<"$devicename"; then - debug "Doing atcom configuration for ttyS0 serial..." + colored_echo "*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-" ${BLUE} + colored_echo "REMINDER!" ${BLUE} + colored_echo "- Disable serial console and enable miniuart to use ttyS0 as the serial interface." ${SET} + colored_echo "✔ If your ttyS0 (miniuart) port is enabled, press ENTER and continue to installation." ${SET} + colored_echo "✘ If not, please follow the instructions to enable ttyS0 interface on Raspberry Pi" ${SET} + echo -e " + 1. Start raspi-config: ${BLUE}sudo raspi-config${SET}. + 2. Select option 3 - ${BLUE}Interface Options${SET}. + 3. Select option P6 - ${BLUE}Serial Port${SET}. + 4. ${BLUE}At the prompt Would you like a login shell to be accessible over serial?${SET} answer ${BLUE}'No'${SET} + 5. ${BLUE}At the prompt Would you like the serial port hardware to be enabled?${SET} answer ${BLUE}'Yes'${SET} + 6. Exit raspi-config and ${BLUE}reboot${SET} the Pi for changes to take effect. + " + colored_echo "*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-" ${BLUE} + echo + echo -e "Press ${BLUE}ENTER${SET} key to continue to installation or press ${BLUE}CTRL^C${SET} to abort installation and enable ttyS0 serial interface." + read -p "" ENTER + + colored_echo "Doing atcom configuration for ttyS0 serial..." # create atcom config echo port: "/dev/ttyS0" > configs.yml mv configs.yml $PPP_PATH