repo branch changed in install.sh

This commit is contained in:
Yasin Kaya 2020-11-18 10:24:15 -08:00
parent 36dc0e62a3
commit 105e9f8f68
9 changed files with 20 additions and 18 deletions

View File

@ -1,4 +1,4 @@
#!/bin/env bash
#!/bin/bash
source configs.sh

View File

@ -5,6 +5,8 @@ RED='\033[0;31m'
BLUE='\033[1;34m'
SET='\033[0m'
REPO=revision
function colored_echo
{
COLOR=${2:-$YELLOW}
@ -33,21 +35,21 @@ case $shield_hat in
esac
colored_echo "Downloading setup files..."
wget --no-check-certificate https://raw.githubusercontent.com/sixfab/Sixfab_PPP_Installer/master/ppp_installer/chat-connect -O chat-connect
wget --no-check-certificate https://raw.githubusercontent.com/sixfab/Sixfab_PPP_Installer/$REPO/ppp_installer/chat-connect -O chat-connect
if [ $? -ne 0 ]; then
colored_echo "Download failed" ${RED}
exit 1;
fi
wget --no-check-certificate https://raw.githubusercontent.com/sixfab/Sixfab_PPP_Installer/master/ppp_installer/chat-disconnect -O chat-disconnect
wget --no-check-certificate https://raw.githubusercontent.com/sixfab/Sixfab_PPP_Installer/$REPO/ppp_installer/chat-disconnect -O chat-disconnect
if [ $? -ne 0 ]; then
colored_echo "Download failed" ${RED}
exit 1;
fi
wget --no-check-certificate https://raw.githubusercontent.com/sixfab/Sixfab_PPP_Installer/master/ppp_installer/provider -O provider
wget --no-check-certificate https://raw.githubusercontent.com/sixfab/Sixfab_PPP_Installer/$REPO/ppp_installer/provider -O provider
if [ $? -ne 0 ]; then
colored_echo "Download failed" ${RED}
@ -116,31 +118,31 @@ do
case $auto_reconnect in
[Yy]* ) colored_echo "Downloading setup file..."
wget --no-check-certificate https://raw.githubusercontent.com/sixfab/Sixfab_PPP_Installer/master/ppp_installer/reconnect_service -O reconnect.service
wget --no-check-certificate https://raw.githubusercontent.com/sixfab/Sixfab_PPP_Installer/$REPO/ppp_installer/reconnect_service -O reconnect.service
if [ $shield_hat -eq 1 ]; then
wget --no-check-certificate https://raw.githubusercontent.com/sixfab/Sixfab_PPP_Installer/master/ppp_installer/reconnect_gprsshield -O reconnect.sh
wget --no-check-certificate https://raw.githubusercontent.com/sixfab/Sixfab_PPP_Installer/$REPO/ppp_installer/reconnect_gprsshield -O reconnect.sh
elif [ $shield_hat -eq 2 ]; then
wget --no-check-certificate https://raw.githubusercontent.com/sixfab/Sixfab_PPP_Installer/master/ppp_installer/reconnect_baseshield -O reconnect.sh
wget --no-check-certificate https://raw.githubusercontent.com/sixfab/Sixfab_PPP_Installer/$REPO/ppp_installer/reconnect_baseshield -O reconnect.sh
elif [ $shield_hat -eq 3 ]; then
wget --no-check-certificate https://raw.githubusercontent.com/sixfab/Sixfab_PPP_Installer/master/ppp_installer/reconnect_cellulariot_app -O reconnect.sh
wget --no-check-certificate https://raw.githubusercontent.com/sixfab/Sixfab_PPP_Installer/$REPO/ppp_installer/reconnect_cellulariot_app -O reconnect.sh
elif [ $shield_hat -eq 4 ]; then
wget --no-check-certificate https://raw.githubusercontent.com/sixfab/Sixfab_PPP_Installer/master/ppp_installer/reconnect_cellulariot -O reconnect.sh
wget --no-check-certificate https://raw.githubusercontent.com/sixfab/Sixfab_PPP_Installer/$REPO/ppp_installer/reconnect_cellulariot -O reconnect.sh
elif [ $shield_hat -eq 5 ]; then
wget --no-check-certificate https://raw.githubusercontent.com/sixfab/Sixfab_PPP_Installer/master/ppp_installer/reconnect_tracker -O reconnect.sh
wget --no-check-certificate https://raw.githubusercontent.com/sixfab/Sixfab_PPP_Installer/$REPO/ppp_installer/reconnect_tracker -O reconnect.sh
elif [ $shield_hat -eq 6 ]; then
wget --no-check-certificate https://raw.githubusercontent.com/sixfab/Sixfab_PPP_Installer/master/ppp_installer/reconnect_basehat -O reconnect.sh
wget --no-check-certificate https://raw.githubusercontent.com/sixfab/Sixfab_PPP_Installer/$REPO/ppp_installer/reconnect_basehat -O reconnect.sh
fi

View File

@ -1,4 +1,4 @@
#!/bin/env bash
#!/bin/bash
source functions.sh
source configs.sh

2
ppp_installer/reconnect_baseshield Normal file → Executable file
View File

@ -1,4 +1,4 @@
#!/bin/env bash
#!/bin/bash
source functions.sh
source configs.sh

View File

@ -1,4 +1,4 @@
#!/bin/env bash
#!/bin/bash
source functions.sh
source configs.sh

View File

@ -1,4 +1,4 @@
#!/bin/env bash
#!/bin/bash
source functions.sh
source configs.sh

View File

@ -1,4 +1,4 @@
#!/bin/env bash
#!/bin/bash
source functions.sh
source configs.sh

View File

@ -1,4 +1,4 @@
#!/bin/env bash
#!/bin/bash
source functions.sh
source configs.sh

View File

@ -1,4 +1,4 @@
#!/bin/env bash
#!/bin/bash
source functions.sh
source configs.sh