diff --git a/src/reconnect_scripts/reconnect_basehat b/src/reconnect_scripts/reconnect_basehat index 9da6c33..6593766 100644 --- a/src/reconnect_scripts/reconnect_basehat +++ b/src/reconnect_scripts/reconnect_basehat @@ -22,7 +22,7 @@ if check_network -eq 0; then # check default interface route | grep ppp | grep default > /dev/null PPP_IS_DEFAULT=$? - if [[ $PPP_IS_DEFAULT -ne 0 ]]; then sudo route add default ppp0; debug "ppp0 is added as default interface manually." fi + if [[ $PPP_IS_DEFAULT -ne 0 ]]; then sudo route add default ppp0; debug "ppp0 is added as default interface manually."; fi else debug "Network registeration is failed!"; fi @@ -51,7 +51,7 @@ while true; do # check default interface route | grep ppp | grep default > /dev/null PPP_IS_DEFAULT=$? - if [[ $PPP_IS_DEFAULT -ne 0 ]]; then sudo route add default ppp0; debug "ppp0 is added as default interface manually." fi + if [[ $PPP_IS_DEFAULT -ne 0 ]]; then sudo route add default ppp0; debug "ppp0 is added as default interface manually."; fi fi fi sleep $INTERVAL diff --git a/src/reconnect_scripts/reconnect_baseshield b/src/reconnect_scripts/reconnect_baseshield index 7cd7b8c..00f80c7 100755 --- a/src/reconnect_scripts/reconnect_baseshield +++ b/src/reconnect_scripts/reconnect_baseshield @@ -10,7 +10,7 @@ if check_network -eq 0; then # check default interface route | grep ppp | grep default > /dev/null PPP_IS_DEFAULT=$? - if [[ $PPP_IS_DEFAULT -ne 0 ]]; then sudo route add default ppp0; debug "ppp0 is added as default interface manually." fi + if [[ $PPP_IS_DEFAULT -ne 0 ]]; then sudo route add default ppp0; debug "ppp0 is added as default interface manually."; fi else debug "Network registeration is failed!"; fi @@ -39,7 +39,7 @@ while true; do # check default interface route | grep ppp | grep default > /dev/null PPP_IS_DEFAULT=$? - if [[ $PPP_IS_DEFAULT -ne 0 ]]; then sudo route add default ppp0; debug "ppp0 is added as default interface manually." fi + if [[ $PPP_IS_DEFAULT -ne 0 ]]; then sudo route add default ppp0; debug "ppp0 is added as default interface manually."; fi fi fi sleep $INTERVAL diff --git a/src/reconnect_scripts/reconnect_cellulariot b/src/reconnect_scripts/reconnect_cellulariot index a272dec..0436f42 100644 --- a/src/reconnect_scripts/reconnect_cellulariot +++ b/src/reconnect_scripts/reconnect_cellulariot @@ -63,7 +63,7 @@ if check_network -eq 0; then # check default interface route | grep ppp | grep default > /dev/null PPP_IS_DEFAULT=$? - if [[ $PPP_IS_DEFAULT -ne 0 ]]; then sudo route add default ppp0; debug "ppp0 is added as default interface manually." fi + if [[ $PPP_IS_DEFAULT -ne 0 ]]; then sudo route add default ppp0; debug "ppp0 is added as default interface manually."; fi else debug "Network registeration is failed!"; @@ -93,7 +93,7 @@ while true; do # check default interface route | grep ppp | grep default > /dev/null PPP_IS_DEFAULT=$? - if [[ $PPP_IS_DEFAULT -ne 0 ]]; then sudo route add default ppp0; debug "ppp0 is added as default interface manually." fi + if [[ $PPP_IS_DEFAULT -ne 0 ]]; then sudo route add default ppp0; debug "ppp0 is added as default interface manually."; fi fi fi sleep $INTERVAL diff --git a/src/reconnect_scripts/reconnect_cellulariot_app b/src/reconnect_scripts/reconnect_cellulariot_app index 27100fc..d62c779 100644 --- a/src/reconnect_scripts/reconnect_cellulariot_app +++ b/src/reconnect_scripts/reconnect_cellulariot_app @@ -64,7 +64,7 @@ if check_network -eq 0; then # check default interface route | grep ppp | grep default > /dev/null PPP_IS_DEFAULT=$? - if [[ $PPP_IS_DEFAULT -ne 0 ]]; then sudo route add default ppp0; debug "ppp0 is added as default interface manually." fi + if [[ $PPP_IS_DEFAULT -ne 0 ]]; then sudo route add default ppp0; debug "ppp0 is added as default interface manually."; fi else debug "Network registeration is failed!"; fi @@ -93,7 +93,7 @@ while true; do # check default interface route | grep ppp | grep default > /dev/null PPP_IS_DEFAULT=$? - if [[ $PPP_IS_DEFAULT -ne 0 ]]; then sudo route add default ppp0; debug "ppp0 is added as default interface manually." fi + if [[ $PPP_IS_DEFAULT -ne 0 ]]; then sudo route add default ppp0; debug "ppp0 is added as default interface manually."; fi fi fi sleep $INTERVAL diff --git a/src/reconnect_scripts/reconnect_gprsshield b/src/reconnect_scripts/reconnect_gprsshield index a8fdb67..a630ff2 100644 --- a/src/reconnect_scripts/reconnect_gprsshield +++ b/src/reconnect_scripts/reconnect_gprsshield @@ -43,7 +43,6 @@ function power_up_module() return 1 } - # Modem power up if power_up_module -eq 0 ; then sleep 0.1; else debug "Module couldn't be powered up! Check the hardware setup!"; fi @@ -54,7 +53,7 @@ if check_network -eq 0; then # check default interface route | grep ppp | grep default > /dev/null PPP_IS_DEFAULT=$? - if [[ $PPP_IS_DEFAULT -ne 0 ]]; then sudo route add default ppp0; debug "ppp0 is added as default interface manually." fi + if [[ $PPP_IS_DEFAULT -ne 0 ]]; then sudo route add default ppp0; debug "ppp0 is added as default interface manually."; fi else debug "Network registeration is failed!"; fi @@ -83,7 +82,7 @@ while true; do # check default interface route | grep ppp | grep default > /dev/null PPP_IS_DEFAULT=$? - if [[ $PPP_IS_DEFAULT -ne 0 ]]; then sudo route add default ppp0; debug "ppp0 is added as default interface manually." fi + if [[ $PPP_IS_DEFAULT -ne 0 ]]; then sudo route add default ppp0; debug "ppp0 is added as default interface manually."; fi fi fi sleep $INTERVAL diff --git a/src/reconnect_scripts/reconnect_tracker b/src/reconnect_scripts/reconnect_tracker index 451c4fe..8fb3a36 100644 --- a/src/reconnect_scripts/reconnect_tracker +++ b/src/reconnect_scripts/reconnect_tracker @@ -64,7 +64,7 @@ if check_network -eq 0; then # check default interface route | grep ppp | grep default > /dev/null PPP_IS_DEFAULT=$? - if [[ $PPP_IS_DEFAULT -ne 0 ]]; then sudo route add default ppp0; debug "ppp0 is added as default interface manually." fi + if [[ $PPP_IS_DEFAULT -ne 0 ]]; then sudo route add default ppp0; debug "ppp0 is added as default interface manually."; fi else debug "Network registeration is failed!"; fi @@ -93,7 +93,7 @@ while true; do # check default interface route | grep ppp | grep default > /dev/null PPP_IS_DEFAULT=$? - if [[ $PPP_IS_DEFAULT -ne 0 ]]; then sudo route add default ppp0; debug "ppp0 is added as default interface manually." fi + if [[ $PPP_IS_DEFAULT -ne 0 ]]; then sudo route add default ppp0; debug "ppp0 is added as default interface manually."; fi fi fi sleep $INTERVAL