mirror of
https://github.com/sixfab/Sixfab_PPP_Installer
synced 2024-11-25 20:34:54 +00:00
jetson sixfab connect on boot
This commit is contained in:
parent
95af3d1371
commit
b81b3e676d
@ -13,6 +13,7 @@ StandardOutput=inherit
|
|||||||
StandardError=inherit
|
StandardError=inherit
|
||||||
RemainAfterExit=true
|
RemainAfterExit=true
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
RestartSec=5s
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
@ -4,9 +4,18 @@ source functions.sh
|
|||||||
|
|
||||||
for i in {1..4}; do
|
for i in {1..4}; do
|
||||||
bash jetson_configure_modem.sh
|
bash jetson_configure_modem.sh
|
||||||
|
WAS_SUCCESSFUL=$?
|
||||||
|
|
||||||
|
|
||||||
|
if [[ $WAS_SUCCESSFUL -eq 0 ]]; then
|
||||||
|
debug "Jetson configure modem successful"
|
||||||
|
else
|
||||||
|
debug "Jetson configure modem failed: Exit code = $WAS_SUCCESSFUL"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ $MODEM_CONFIG -eq 0 ]]; then
|
if [[ $MODEM_CONFIG -eq 0 ]]; then
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user