Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect and disallow firmware downgrades #4

Open
Lanchon opened this issue Sep 21, 2019 · 1 comment
Open

Detect and disallow firmware downgrades #4

Lanchon opened this issue Sep 21, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@Lanchon
Copy link
Owner

Lanchon commented Sep 21, 2019

Right now, the latest available downloadable firmware is assumed to never be older than the currently installed firmware. The currently installed firmware version is never queried. A per-device automatically maintained local repository of downloaded firmware images and configuration backups is leveraged to ensure that upgrades are applied only once per device.

TODO: Query actual installed firmware versions and disallow downgrades.

@Lanchon Lanchon added the enhancement New feature or request label Sep 21, 2019
@slycordinator
Copy link

slycordinator commented Aug 15, 2021

The current, installed revision can be extracted from /tmp/loginprompt
It's the only file I could find that contains it.

Here's an excerpt of what I used in my own update script
temp_dir='/tmp'
login_prompt="$temp_dir/loginprompt"
...
installed_rev="$(sed -n '1p' "$login_prompt"|awk '{print $2}'|sed 's/^.*r/r/')"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants