From 3f2b640779e07d573ee5f705d47b44b44593a20b Mon Sep 17 00:00:00 2001 From: Yasin Kaya Date: Thu, 19 Nov 2020 01:34:16 -0800 Subject: [PATCH] Typo fixed --- install.sh | 23 ++++++++++++++--------- src/ppp_connection_manager.sh | 2 +- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/install.sh b/install.sh index a79b706..33d2cb7 100755 --- a/install.sh +++ b/install.sh @@ -7,7 +7,8 @@ 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" -SCRIPT_NAME="ppp_reconnect.sh" +RECONNECT_SCRIPT_NAME="ppp_reconnect.sh" +MANAGER_SCRIPT_NAME="ppp_connection_manager.sh" SERVICE_NAME="ppp_connection_manager.service" YELLOW='\033[1;33m' @@ -151,37 +152,41 @@ do wget --no-check-certificate $SOURCE_PATH/$SERVICE_NAME wget --no-check-certificate $SOURCE_PATH/functions.sh wget --no-check-certificate $SOURCE_PATH/configs.sh + wget --no-check-certificate $SOURCE_PATH/configure_modem.sh + wget --no-check-certificate $SOURCE_PATH/$MANAGER_SCRIPT_NAME if [ $shield_hat -eq 1 ]; then - wget --no-check-certificate $SCRIPT_PATH/reconnect_gprsshield -O $SCRIPT_NAME + wget --no-check-certificate $SCRIPT_PATH/reconnect_gprsshield -O $RECONNECT_SCRIPT_NAME elif [ $shield_hat -eq 2 ]; then - wget --no-check-certificate $SCRIPT_PATH/reconnect_baseshield -O $SCRIPT_NAME + wget --no-check-certificate $SCRIPT_PATH/reconnect_baseshield -O $RECONNECT_SCRIPT_NAME elif [ $shield_hat -eq 3 ]; then - wget --no-check-certificate $SCRIPT_PATH/reconnect_cellulariot_app -O $SCRIPT_NAME + wget --no-check-certificate $SCRIPT_PATH/reconnect_cellulariot_app -O $RECONNECT_SCRIPT_NAME elif [ $shield_hat -eq 4 ]; then - wget --no-check-certificate $SCRIPT_PATH/reconnect_cellulariot -O $SCRIPT_NAME + wget --no-check-certificate $SCRIPT_PATH/reconnect_cellulariot -O $RECONNECT_SCRIPT_NAME elif [ $shield_hat -eq 5 ]; then - wget --no-check-certificate $SCRIPT_PATH/reconnect_tracker -O $SCRIPT_NAME + wget --no-check-certificate $SCRIPT_PATH/reconnect_tracker -O $RECONNECT_SCRIPT_NAME elif [ $shield_hat -eq 6 ]; then - wget --no-check-certificate $SCRIPT_PATH/reconnect_basehat -O $SCRIPT_NAME + wget --no-check-certificate $SCRIPT_PATH/reconnect_basehat -O $RECONNECT_SCRIPT_NAME - fi + fi - mv $SCRIPT_NAME $PPP_PATH mv functions.sh $PPP_PATH mv configs.sh $PPP_PATH + mv configure_modem.sh $PPP_PATH + mv $RECONNECT_SCRIPT_NAME $PPP_PATH + mv $MANAGER_SCRIPT_NAME $PPP_PATH mv $SERVICE_NAME /etc/systemd/system/ systemctl daemon-reload diff --git a/src/ppp_connection_manager.sh b/src/ppp_connection_manager.sh index 3207a06..80d05af 100644 --- a/src/ppp_connection_manager.sh +++ b/src/ppp_connection_manager.sh @@ -24,7 +24,7 @@ for i in {1..120}; do done if [[ $MODEM_CONFIG -eq 0 ]]; then - bash ./reconnect_scripts/reconnect_baseshield |& sudo tee -a ./logs/$LOG_FILE_NAME.log + bash ppp_reconnect.sh |& sudo tee -a ./logs/$LOG_FILE_NAME.log else debug "Modem configuration is failed multiple times!" debug "Checkout other troubleshooting step on docs.sixfab.com."