somakeit / smib

1 stars 0 forks source link

Add safe mode execution wrapper to smibhid #252

Open sjefferson99 opened 1 month ago

sjefferson99 commented 1 month ago

Wrap main in try except and on exception, log error to file and if safe mode enabled, replace main with backup that loads a minimal known working Web server to load new firmware or config.

sjefferson99 commented 2 days ago

Updater will populate last changes in a backup folder which can be restored on first attempt. If this fails, have config entry that enables safe mode to pull latest stable version from github to get you back to a working web UI and smibhid to try again. Update web page should allow you to browse the backup files and manage them, can then maintain space, but also provide a custom backup without bouncing back to latest stable.