[U-Boot-Users] RFC: hidden environment variables

Jeff Mann MannJ at embeddedplanet.com
Mon Apr 23 22:05:57 CEST 2007

>Well, it doesn't *have* to be hidden, it just makes things simpler that
way.  If the variable can't be touched by the user, then I don't have to
hook into the _do_setenv() command.

You can implement an option that keeps a list of variables that should
be hidden. That way, each variable can be checked against the list
before printing it or allowing a user to change it from the prompt. With
an implementation like this, everything continues to work if the
hide_some_varibles option is not enabled. For example, variable
'hide_variable' could contain a list of other variables that are hidden.
Of course, 'hide_variable' would have to be in its own list too. Then
each variable can be searched for within 'hide_variable' before it is
printed or changed. That does not sound that dificult and is completely
backward compatable. 


More information about the U-Boot mailing list