mirror of
https://github.com/sixfab/Sixfab_PPP_Installer
synced 2024-11-22 11:04:54 +00:00
ppp for jetson(tested on jetson nano)
This commit is contained in:
parent
0b9f095885
commit
b891737c57
@ -1,5 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
:'
|
||||||
|
Created on July 12, 2019 by Saeed Johar (saeedjohar)
|
||||||
|
'
|
||||||
YELLOW='\033[1;33m'
|
YELLOW='\033[1;33m'
|
||||||
RED='\033[0;31m'
|
RED='\033[0;31m'
|
||||||
BLUE='\033[1;34m'
|
BLUE='\033[1;34m'
|
||||||
@ -60,21 +62,6 @@ if [ $? -ne 0 ]; then
|
|||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
while [ 1 ]
|
|
||||||
do
|
|
||||||
echo "${YELLOW}Do you have updated kernel? [Y/n] ${SET}"
|
|
||||||
read kernelUpdate
|
|
||||||
|
|
||||||
case $kernelUpdate in
|
|
||||||
[Yy]* ) break;;
|
|
||||||
|
|
||||||
[Nn]* ) echo "${YELLOW}rpi-update${SET}"
|
|
||||||
rpi-update
|
|
||||||
break;;
|
|
||||||
*) echo "${RED}Wrong Selection, Select among Y or n${SET}";;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
echo "${YELLOW}ppp install${SET}"
|
echo "${YELLOW}ppp install${SET}"
|
||||||
apt-get install ppp
|
apt-get install ppp
|
||||||
|
|
||||||
@ -129,12 +116,6 @@ if ! (grep -q 'route' /etc/ppp/ip-up ); then
|
|||||||
echo "sudo route add default ppp0" >> /etc/ppp/ip-up
|
echo "sudo route add default ppp0" >> /etc/ppp/ip-up
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $shield_hat -eq 2 ]; then
|
|
||||||
if ! (grep -q 'max_usb_current' /boot/config.txt ); then
|
|
||||||
echo "max_usb_current=1" >> /boot/config.txt
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
while [ 1 ]
|
while [ 1 ]
|
||||||
do
|
do
|
||||||
echo "${YELLOW}Do you want to activate auto connect/reconnect service at R.Pi boot up? [Y/n] ${SET}"
|
echo "${YELLOW}Do you want to activate auto connect/reconnect service at R.Pi boot up? [Y/n] ${SET}"
|
||||||
|
Loading…
Reference in New Issue
Block a user