meraki / automation-scripts

MIT License
391 stars 198 forks source link

Allow firmware_lock to run once and exit #58

Closed ggiesen closed 4 months ago

ggiesen commented 4 months ago

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.