mirror of
https://github.com/sixfab/Sixfab_PPP_Installer
synced 2024-11-24 20:04:54 +00:00
correct issue where script is always run once
add capture of configure_modem.sh exit code and increment i if configure_modem.sh fails
This commit is contained in:
parent
fc6506b125
commit
cca880e92d
@ -4,10 +4,12 @@ source functions.sh
|
|||||||
|
|
||||||
for i in {1..4}; do
|
for i in {1..4}; do
|
||||||
bash configure_modem.sh
|
bash configure_modem.sh
|
||||||
|
MODEM_CONFIG=$?
|
||||||
|
|
||||||
if [[ $MODEM_CONFIG -eq 0 ]]; then
|
if [[ $MODEM_CONFIG -eq 0 ]]; then
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
i=$(($i+1))
|
||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user