mirror of
https://github.com/sixfab/Sixfab_PPP_Installer
synced 2024-11-21 18:44:55 +00:00
Added reset power and power up steps to conneciton recovery sequence
This commit is contained in:
parent
ed281a616e
commit
44f62e6c22
@ -86,7 +86,9 @@ while true; do
|
|||||||
if [[ $PINGG -eq 0 ]]; then
|
if [[ $PINGG -eq 0 ]]; then
|
||||||
printf "+"
|
printf "+"
|
||||||
else
|
else
|
||||||
debug "Connection is down, reconnecting..."
|
debug "Connection is down, reconnecting..."
|
||||||
|
restart_power
|
||||||
|
if power_up_module -eq 0 ; then sleep 0.1; else debug "Module couldn't be powered up! Check the hardware setup!"; fi
|
||||||
if check_network -eq 0; then sleep 0.1; else debug "Network registeration is failed!"; fi
|
if check_network -eq 0; then sleep 0.1; else debug "Network registeration is failed!"; fi
|
||||||
sudo pon
|
sudo pon
|
||||||
|
|
||||||
|
@ -87,6 +87,8 @@ while true; do
|
|||||||
printf "+"
|
printf "+"
|
||||||
else
|
else
|
||||||
debug "Connection is down, reconnecting..."
|
debug "Connection is down, reconnecting..."
|
||||||
|
restart_power
|
||||||
|
if power_up_module -eq 0 ; then sleep 0.1; else debug "Module couldn't be powered up! Check the hardware setup!"; fi
|
||||||
if check_network -eq 0; then sleep 0.1; else debug "Network registeration is failed!"; fi
|
if check_network -eq 0; then sleep 0.1; else debug "Network registeration is failed!"; fi
|
||||||
sudo pon
|
sudo pon
|
||||||
|
|
||||||
|
@ -87,6 +87,8 @@ while true; do
|
|||||||
printf "+"
|
printf "+"
|
||||||
else
|
else
|
||||||
debug "Connection is down, reconnecting..."
|
debug "Connection is down, reconnecting..."
|
||||||
|
restart_power
|
||||||
|
if power_up_module -eq 0 ; then sleep 0.1; else debug "Module couldn't be powered up! Check the hardware setup!"; fi
|
||||||
if check_network -eq 0; then sleep 0.1; else debug "Network registeration is failed!"; fi
|
if check_network -eq 0; then sleep 0.1; else debug "Network registeration is failed!"; fi
|
||||||
sudo pon
|
sudo pon
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user