mirror of
https://github.com/sixfab/Sixfab_PPP_Installer
synced 2024-11-21 18:44:55 +00:00
Added ttyS0 config for atcom to installer
This commit is contained in:
parent
7f9e5d3709
commit
e3a7715949
11
install.sh
11
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/
|
||||
|
Loading…
Reference in New Issue
Block a user