route information adding issue fixed

This commit is contained in:
saeedjohar 2019-12-03 14:11:23 +03:00
parent 409b9936be
commit d77d29eed7

View File

@ -129,7 +129,7 @@ sed -i "s/#APN/$carrierapn/" provider
sed -i "s/#DEVICE/$devicename/" provider
mv provider /etc/ppp/peers/provider
if ! (grep -q 'route' /etc/ppp/ip-up ); then
if ! (grep -q 'sudo route' /etc/ppp/ip-up ); then
echo "sudo route del default" >> /etc/ppp/ip-up
echo "sudo route add default ppp0" >> /etc/ppp/ip-up
fi