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