From 63524e154a95ace63c07d401ebc58c63e831f933 Mon Sep 17 00:00:00 2001 From: Yasin Kaya Date: Thu, 19 Nov 2020 00:19:04 -0800 Subject: [PATCH] Chnaged service and script names --- install.sh | 22 ++++++++++--------- ...service => ppp_connection_manager.service} | 4 ++-- 2 files changed, 14 insertions(+), 12 deletions(-) rename src/{reconnect_service => ppp_connection_manager.service} (70%) diff --git a/install.sh b/install.sh index d50f712..a79b706 100755 --- a/install.sh +++ b/install.sh @@ -7,6 +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" +SERVICE_NAME="ppp_connection_manager.service" YELLOW='\033[1;33m' RED='\033[0;31m' @@ -146,44 +148,44 @@ do case $auto_reconnect in [Yy]* ) colored_echo "Downloading setup file..." - wget --no-check-certificate $SOURCE_PATH/reconnect_service -O reconnect.service + wget --no-check-certificate $SOURCE_PATH/$SERVICE_NAME 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 $SCRIPT_PATH/reconnect_gprsshield -O reconnect.sh + wget --no-check-certificate $SCRIPT_PATH/reconnect_gprsshield -O $SCRIPT_NAME elif [ $shield_hat -eq 2 ]; then - wget --no-check-certificate $SCRIPT_PATH/reconnect_baseshield -O reconnect.sh + wget --no-check-certificate $SCRIPT_PATH/reconnect_baseshield -O $SCRIPT_NAME elif [ $shield_hat -eq 3 ]; then - wget --no-check-certificate $SCRIPT_PATH/reconnect_cellulariot_app -O reconnect.sh + wget --no-check-certificate $SCRIPT_PATH/reconnect_cellulariot_app -O $SCRIPT_NAME elif [ $shield_hat -eq 4 ]; then - wget --no-check-certificate $SCRIPT_PATH/reconnect_cellulariot -O reconnect.sh + wget --no-check-certificate $SCRIPT_PATH/reconnect_cellulariot -O $SCRIPT_NAME elif [ $shield_hat -eq 5 ]; then - wget --no-check-certificate $SCRIPT_PATH/reconnect_tracker -O reconnect.sh + wget --no-check-certificate $SCRIPT_PATH/reconnect_tracker -O $SCRIPT_NAME elif [ $shield_hat -eq 6 ]; then - wget --no-check-certificate $SCRIPT_PATH/reconnect_basehat -O reconnect.sh + wget --no-check-certificate $SCRIPT_PATH/reconnect_basehat -O $SCRIPT_NAME fi - mv reconnect.sh $PPP_PATH + mv $SCRIPT_NAME $PPP_PATH mv functions.sh $PPP_PATH mv configs.sh $PPP_PATH - mv reconnect.service /etc/systemd/system/ + mv $SERVICE_NAME /etc/systemd/system/ systemctl daemon-reload - systemctl enable reconnect.service + systemctl enable $SERVICE_NAME break;; diff --git a/src/reconnect_service b/src/ppp_connection_manager.service similarity index 70% rename from src/reconnect_service rename to src/ppp_connection_manager.service index 59d706e..e521796 100644 --- a/src/reconnect_service +++ b/src/ppp_connection_manager.service @@ -1,9 +1,9 @@ [Unit] -Description=PPP Auto Connection +Description=PPP Connection Manager After=network.target [Service] -ExecStart=/bin/bash reconnect.sh +ExecStart=/bin/bash ppp_connection_manager.sh WorkingDirectory=/opt/sixfab/ppp_connection_manager StandardOutput=inherit StandardError=inherit