I automate the task of backing up my router's config, JFFS, and Entware. I would like to also include the firmware version in the backup. I know it's in NVRAM stored as
Instead of reinventing the wheel I tried investigating how it's done for the page headers in the GUI, but that proved to be more difficult than I had imagined.
Any tips on where to look?
3rd-party=merlin
and innerver=3.0.0.4.386.2_6
, which requires a little bit of script-fu to turn into a string like "Merlin-386.2_6."Instead of reinventing the wheel I tried investigating how it's done for the page headers in the GUI, but that proved to be more difficult than I had imagined.
Any tips on where to look?