ppp for jetson(tested on jetson nano)

This commit is contained in:
saeedjohar 2019-07-12 17:40:35 +03:00
parent 0b9f095885
commit b891737c57
1 changed files with 3 additions and 22 deletions

View File

@ -1,5 +1,7 @@
#!/bin/sh
:'
Created on July 12, 2019 by Saeed Johar (saeedjohar)
'
YELLOW='\033[1;33m'
RED='\033[0;31m'
BLUE='\033[1;34m'
@ -60,21 +62,6 @@ if [ $? -ne 0 ]; then
exit 1;
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}"
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
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 ]
do
echo "${YELLOW}Do you want to activate auto connect/reconnect service at R.Pi boot up? [Y/n] ${SET}"