inquiry to 'nvram' binary (missing some capabilities)
Hi there,
In attempting to write some automation for nvram backup/restore, I noticed a lot of users expect the nvram
command to have options like import
and export
. However mine does not.
i.e. https://github.com/wbtf/nvram-backup/blob/master/nvram-backup.sh
# nvram export --tab output
usage: nvram [get name] [set name=value] [unset name] [show] [commit] [save] [restore] [erase] ...
I presume the version of the nvram
binary is built and supplied via this firmware? (but please correct me if I'm mis-understanding)
(running latest Q4 2018 firmware)
Comments (10)
-
-
repo owner - changed status to closed
Michal Obrembski has presented the solution.
-
reporter Thanks!
-
reporter - changed status to open
Actually, no,
save
norrestore
are available options?/tmp/home/root# nvram save usage: nvram [get name] [set name=value] [unset name] [show] [commit] [save] [restore] [erase] ... /tmp/home/root# nvram restore usage: nvram [get name] [set name=value] [unset name] [show] [commit] [save] [restore] [erase] ...
Shouldn't these NOT prompt into usage? (I expect
save
for example, to either dump to stdout, or save to file) -
sorry, i’ve done a mistake.
It should be
nvram save nameoffile.cfg
and
nvram restore nameoffile.cfg
But i think that we should change the nvram prompt to be more meaningful
-
reporter Confirmed, specifying the filename works
.
Indeed, this ticket thus can serve to improve the usage prompt.
-
reporter Darn, i made the change and tried to push up but
git push origin enhancement/#15_improve_nvram_usage Forbidden fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
-
You need to fork repo to create pull request.
But you dont have to, ive created a pull request today morning.
https://bitbucket.org/kille72/freshtomato-arm/pull-requests/40
-
reporter this was cherry-picked and delivered
-
reporter - changed status to resolved
- Log in to comment
To export nvram configuration use
To import, use nvram restore. I'm not sure if this is what you expect? :) Those both commands are used to import/export via WWW.