Added ttyS0 config for atcom to installer

This commit is contained in:
Yasin Kaya 2020-11-26 15:22:19 +00:00
parent 7f9e5d3709
commit e3a7715949

View File

@ -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/