Currently the firmware_lock script operates on a loop, using the scanIntervalHours config setting to determine how often a scan is performed (default is every 24 hours).
This PR modifies firmware_lock to add a runOnce setting that overrides scanIntervalHours, allowing the script to run once and exit. This is useful for one-time manual runs, or allowing the script to be used in a cron job.
Currently the
firmware_lock
script operates on a loop, using thescanIntervalHours
config setting to determine how often a scan is performed (default is every 24 hours).This PR modifies firmware_lock to add a
runOnce
setting that overrides scanIntervalHours, allowing the script to run once and exit. This is useful for one-time manual runs, or allowing the script to be used in a cron job.