mirror of
https://github.com/sixfab/Sixfab_PPP_Installer
synced 2024-11-14 23:24:55 +00:00
Update ppp_install.sh
This commit is contained in:
parent
0ffaf6a265
commit
17810fe38e
@ -205,6 +205,10 @@ sed -i "s/#APN/$carrierapn/" provider
|
|||||||
sed -i "s/#DEVICE/$devicename/" provider
|
sed -i "s/#DEVICE/$devicename/" provider
|
||||||
mv provider /etc/ppp/peers/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 [[ $shield_hat -eq 2 ]] || [[ $shield_hat -eq 6 ]]; then
|
||||||
if ! (grep -q 'max_usb_current' /boot/config.txt ); then
|
if ! (grep -q 'max_usb_current' /boot/config.txt ); then
|
||||||
echo "max_usb_current=1" >> /boot/config.txt
|
echo "max_usb_current=1" >> /boot/config.txt
|
||||||
|
Loading…
Reference in New Issue
Block a user