From c5c3adce0617fd8e228d1dc7e53d8ca86876e3fa Mon Sep 17 00:00:00 2001 From: saeedjohar Date: Fri, 29 Jan 2021 15:37:36 +0300 Subject: [PATCH] Update ppp_install_jetson.sh --- ppp_install_jetson.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ppp_install_jetson.sh b/ppp_install_jetson.sh index 54301aa..a1d3474 100755 --- a/ppp_install_jetson.sh +++ b/ppp_install_jetson.sh @@ -132,5 +132,10 @@ sed -i "s/#APN/$carrierapn/" provider sed -i "s/#DEVICE/$devicename/" provider mv provider /etc/ppp/peers/provider + +if ! (grep -q 'sudo route' /etc/ppp/ip-up ); then + echo "sudo route add default ppp0" >> /etc/ppp/ip-up +fi + read -p "Press ENTER key to reboot" ENTER -reboot \ No newline at end of file +reboot