From 1b4fd90a1dd45c29535ba31a265bfa1f65ace533 Mon Sep 17 00:00:00 2001 From: Ensar Date: Thu, 28 Oct 2021 16:16:35 +0300 Subject: [PATCH] Fixing access to /etc/ppp/chap-secrets --- ppp_install_jetson.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ppp_install_jetson.sh b/ppp_install_jetson.sh index a1d3474..f1a8d9f 100755 --- a/ppp_install_jetson.sh +++ b/ppp_install_jetson.sh @@ -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