From 105e9f8f688d590666163dd2b6d6114b313daf40 Mon Sep 17 00:00:00 2001 From: Yasin Kaya Date: Wed, 18 Nov 2020 10:24:15 -0800 Subject: [PATCH] repo branch changed in install.sh --- ppp_installer/functions.sh | 2 +- ppp_installer/install.sh | 22 ++++++++++++---------- ppp_installer/reconnect_basehat | 2 +- ppp_installer/reconnect_baseshield | 2 +- ppp_installer/reconnect_cellulariot | 2 +- ppp_installer/reconnect_cellulariot_app | 2 +- ppp_installer/reconnect_gprsshield | 2 +- ppp_installer/reconnect_test.sh | 2 +- ppp_installer/reconnect_tracker | 2 +- 9 files changed, 20 insertions(+), 18 deletions(-) mode change 100644 => 100755 ppp_installer/reconnect_baseshield diff --git a/ppp_installer/functions.sh b/ppp_installer/functions.sh index 2a03043..89a5acd 100644 --- a/ppp_installer/functions.sh +++ b/ppp_installer/functions.sh @@ -1,4 +1,4 @@ -#!/bin/env bash +#!/bin/bash source configs.sh diff --git a/ppp_installer/install.sh b/ppp_installer/install.sh index ea70860..8b26b22 100755 --- a/ppp_installer/install.sh +++ b/ppp_installer/install.sh @@ -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 diff --git a/ppp_installer/reconnect_basehat b/ppp_installer/reconnect_basehat index 9591265..df682ff 100644 --- a/ppp_installer/reconnect_basehat +++ b/ppp_installer/reconnect_basehat @@ -1,4 +1,4 @@ -#!/bin/env bash +#!/bin/bash source functions.sh source configs.sh diff --git a/ppp_installer/reconnect_baseshield b/ppp_installer/reconnect_baseshield old mode 100644 new mode 100755 index 8e74cc1..13fe285 --- a/ppp_installer/reconnect_baseshield +++ b/ppp_installer/reconnect_baseshield @@ -1,4 +1,4 @@ -#!/bin/env bash +#!/bin/bash source functions.sh source configs.sh diff --git a/ppp_installer/reconnect_cellulariot b/ppp_installer/reconnect_cellulariot index 5c0967a..52c9789 100644 --- a/ppp_installer/reconnect_cellulariot +++ b/ppp_installer/reconnect_cellulariot @@ -1,4 +1,4 @@ -#!/bin/env bash +#!/bin/bash source functions.sh source configs.sh diff --git a/ppp_installer/reconnect_cellulariot_app b/ppp_installer/reconnect_cellulariot_app index 41c2e4e..69c4d6a 100644 --- a/ppp_installer/reconnect_cellulariot_app +++ b/ppp_installer/reconnect_cellulariot_app @@ -1,4 +1,4 @@ -#!/bin/env bash +#!/bin/bash source functions.sh source configs.sh diff --git a/ppp_installer/reconnect_gprsshield b/ppp_installer/reconnect_gprsshield index 11698c8..926d44a 100644 --- a/ppp_installer/reconnect_gprsshield +++ b/ppp_installer/reconnect_gprsshield @@ -1,4 +1,4 @@ -#!/bin/env bash +#!/bin/bash source functions.sh source configs.sh diff --git a/ppp_installer/reconnect_test.sh b/ppp_installer/reconnect_test.sh index 0f5d620..c0a50ad 100644 --- a/ppp_installer/reconnect_test.sh +++ b/ppp_installer/reconnect_test.sh @@ -1,4 +1,4 @@ -#!/bin/env bash +#!/bin/bash source functions.sh source configs.sh diff --git a/ppp_installer/reconnect_tracker b/ppp_installer/reconnect_tracker index a8c0c04..33b8e32 100644 --- a/ppp_installer/reconnect_tracker +++ b/ppp_installer/reconnect_tracker @@ -1,4 +1,4 @@ -#!/bin/env bash +#!/bin/bash source functions.sh source configs.sh