Harden autostart logic for non-existent airframe values

This ensures that the user is pushed back to the airframe configuration stage.
This commit is contained in:
Lorenz Meier 2019-12-26 00:04:50 +01:00
parent f5ce40e434
commit adf7aee762
1 changed files with 2 additions and 0 deletions

View File

@ -78,6 +78,8 @@ class RCOutput():
result += "else\n"
result += "\techo \"ERROR [init] No file matches SYS_AUTOSTART value found in : /etc/init.d/airframes\"\n"
result += "\techo \"ERROR [init] No file matches SYS_AUTOSTART value found in : /etc/init.d/airframes\" >> $LOG_FILE\n"
# Reset the configuration
result += "\tparam set SYS_AUTOSTART 0\n"
result += "\ttone_alarm ${TUNE_ERR}\n"
result += "fi\n"
result += "unset AIRFRAME"