From e3a7715949151f34fd23abc20e3ce9e3e47ad512 Mon Sep 17 00:00:00 2001 From: Yasin Kaya Date: Thu, 26 Nov 2020 15:22:19 +0000 Subject: [PATCH] Added ttyS0 config for atcom to installer --- install.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/install.sh b/install.sh index 7937b01..e2d63f4 100755 --- a/install.sh +++ b/install.sh @@ -169,6 +169,17 @@ read devicename colored_echo "Your input is: $devicename" ${GREEN} +if grep -q "ttyS0" <<<"$devicename"; then + debug "Doing atcom configuration for ttyS0 serial..." + # create atcom config + echo port: "/dev/ttyS0" > configs.yml + mv configs.yml $PPP_PATH +else + # delete atcom config + ls $PPP_PATH | grep configs.yml > /dev/null + if [[ $? -eq 0 ]]; then rm $PPP_PATH/configs.yml; fi +fi + mkdir -p /etc/chatscripts mv chat-connect /etc/chatscripts/