>From shell:
nvram show
list all the content of nvram.
nvram get var_name
Prints the value of var_name.
nvram set var_name=var_value
sets to var_value the variable var_name.
nvram commit
used to save all the changes done with nvram set, otherwise no changes
to nvram are applied.
>From c files:
include the bcmnvram.h file. Look at it (include/bcmnvram.h) to
understand how to use the functions, it is well documented. Again,
remember to "commit" to save changes...
That's all for today
marco
Somewhere in router/rc I saw something like nvram2file. Do you know if
it suitable for binary data?
>
> Somewhere in router/rc I saw something like nvram2file. Do you know if
> it suitable for binary data?
no, I saw it too, but I never checked what is about.