jetson sixfab connect on boot

This commit is contained in:
Droid Sitebots 2021-05-06 12:11:49 +02:00
parent 95af3d1371
commit b81b3e676d
2 changed files with 11 additions and 1 deletions

View File

@ -13,6 +13,7 @@ StandardOutput=inherit
StandardError=inherit
RemainAfterExit=true
Restart=on-failure
RestartSec=5s
[Install]
WantedBy=multi-user.target

View File

@ -4,6 +4,15 @@ source functions.sh
for i in {1..4}; do
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
break