Fixing access to /etc/ppp/chap-secrets

This commit is contained in:
Ensar 2021-10-28 16:16:35 +03:00 committed by GitHub
parent d920f6d0dd
commit 1b4fd90a1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -132,6 +132,8 @@ sed -i "s/#APN/$carrierapn/" provider
sed -i "s/#DEVICE/$devicename/" provider
mv provider /etc/ppp/peers/provider
chmod 600 /etc/ppp/*-secrets
if ! (grep -q 'sudo route' /etc/ppp/ip-up ); then
echo "sudo route add default ppp0" >> /etc/ppp/ip-up