From 17810fe38eba6960373d9dc7434eee393a16a343 Mon Sep 17 00:00:00 2001 From: saeedjohar Date: Fri, 29 Jan 2021 15:34:58 +0300 Subject: [PATCH] Update ppp_install.sh --- ppp_install.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ppp_install.sh b/ppp_install.sh index 714f5db..3bd9be5 100755 --- a/ppp_install.sh +++ b/ppp_install.sh @@ -205,6 +205,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 + if [[ $shield_hat -eq 2 ]] || [[ $shield_hat -eq 6 ]]; then if ! (grep -q 'max_usb_current' /boot/config.txt ); then echo "max_usb_current=1" >> /boot/config.txt