mirror of
https://github.com/sixfab/Sixfab_PPP_Installer
synced 2024-11-25 04:14:53 +00:00
changed all folder structure
This commit is contained in:
parent
3811a1a043
commit
3c974f6dad
@ -1,9 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
REPO=revision
|
||||
SIXFAB_PATH="/opt/sixfab"
|
||||
PPP_PATH="/opt/sixfab/ppp_connection_manager"
|
||||
|
||||
REPO_PATH="https://raw.githubusercontent.com/sixfab/Sixfab_PPP_Installer"
|
||||
BRANCH=revision
|
||||
SOURCE_PATH="$REPO_PATH/$BRANCH/src"
|
||||
SCRIPT_PATH="$REPO_PATH/$BRANCH/src/reconnect_scripts"
|
||||
|
||||
YELLOW='\033[1;33m'
|
||||
RED='\033[0;31m'
|
||||
BLUE='\033[1;34m'
|
||||
@ -59,21 +63,21 @@ case $shield_hat in
|
||||
esac
|
||||
|
||||
colored_echo "Downloading setup files..."
|
||||
wget --no-check-certificate https://raw.githubusercontent.com/sixfab/Sixfab_PPP_Installer/$REPO/ppp_installer/chat-connect -O chat-connect
|
||||
wget --no-check-certificate $SOURCE_PATH/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/$REPO/ppp_installer/chat-disconnect -O chat-disconnect
|
||||
wget --no-check-certificate $SOURCE_PATH/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/$REPO/ppp_installer/provider -O provider
|
||||
wget --no-check-certificate $SOURCE_PATH/provider -O provider
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
colored_echo "Download failed" ${RED}
|
||||
@ -142,34 +146,34 @@ do
|
||||
case $auto_reconnect in
|
||||
[Yy]* ) colored_echo "Downloading setup file..."
|
||||
|
||||
wget --no-check-certificate https://raw.githubusercontent.com/sixfab/Sixfab_PPP_Installer/$REPO/ppp_installer/reconnect_service -O reconnect.service
|
||||
wget --no-check-certificate https://raw.githubusercontent.com/sixfab/Sixfab_PPP_Installer/$REPO/ppp_installer/functions.sh
|
||||
wget --no-check-certificate https://raw.githubusercontent.com/sixfab/Sixfab_PPP_Installer/$REPO/ppp_installer/configs.sh
|
||||
wget --no-check-certificate $SOURCE_PATH/reconnect_service -O reconnect.service
|
||||
wget --no-check-certificate $SOURCE_PATH/functions.sh
|
||||
wget --no-check-certificate $SOURCE_PATH/configs.sh
|
||||
|
||||
|
||||
if [ $shield_hat -eq 1 ]; then
|
||||
|
||||
wget --no-check-certificate https://raw.githubusercontent.com/sixfab/Sixfab_PPP_Installer/$REPO/ppp_installer/reconnect_gprsshield -O reconnect.sh
|
||||
wget --no-check-certificate $SCRIPT_PATH/reconnect_gprsshield -O reconnect.sh
|
||||
|
||||
elif [ $shield_hat -eq 2 ]; then
|
||||
|
||||
wget --no-check-certificate https://raw.githubusercontent.com/sixfab/Sixfab_PPP_Installer/$REPO/ppp_installer/reconnect_baseshield -O reconnect.sh
|
||||
wget --no-check-certificate $SCRIPT_PATH/reconnect_baseshield -O reconnect.sh
|
||||
|
||||
elif [ $shield_hat -eq 3 ]; then
|
||||
|
||||
wget --no-check-certificate https://raw.githubusercontent.com/sixfab/Sixfab_PPP_Installer/$REPO/ppp_installer/reconnect_cellulariot_app -O reconnect.sh
|
||||
wget --no-check-certificate $SCRIPT_PATH/reconnect_cellulariot_app -O reconnect.sh
|
||||
|
||||
elif [ $shield_hat -eq 4 ]; then
|
||||
|
||||
wget --no-check-certificate https://raw.githubusercontent.com/sixfab/Sixfab_PPP_Installer/$REPO/ppp_installer/reconnect_cellulariot -O reconnect.sh
|
||||
wget --no-check-certificate $SCRIPT_PATH/reconnect_cellulariot -O reconnect.sh
|
||||
|
||||
elif [ $shield_hat -eq 5 ]; then
|
||||
|
||||
wget --no-check-certificate https://raw.githubusercontent.com/sixfab/Sixfab_PPP_Installer/$REPO/ppp_installer/reconnect_tracker -O reconnect.sh
|
||||
wget --no-check-certificate $SCRIPT_PATH/reconnect_tracker -O reconnect.sh
|
||||
|
||||
elif [ $shield_hat -eq 6 ]; then
|
||||
|
||||
wget --no-check-certificate https://raw.githubusercontent.com/sixfab/Sixfab_PPP_Installer/$REPO/ppp_installer/reconnect_basehat -O reconnect.sh
|
||||
wget --no-check-certificate $SCRIPT_PATH/reconnect_basehat -O reconnect.sh
|
||||
|
||||
fi
|
||||
|
@ -1,10 +0,0 @@
|
||||
#!/bin/env bash
|
||||
|
||||
source functions.sh
|
||||
source configs.sh
|
||||
|
||||
echo "PING TIMEOUT: " $PING_TIMEOUT
|
||||
echo "DOUBLE CHECK WAIT: " $DOUBLE_CHECK_WAIT
|
||||
echo "INTERVAL: " $INTERVAL
|
||||
|
||||
check_network
|
Loading…
Reference in New Issue
Block a user