[U-Boot-Users] Delete all env vars except read onlys
Wolfgang Denk
wd at denx.de
Tue Mar 25 22:10:25 CET 2008
In message <20080215164010.2944E24D11 at gemini.denx.de> I wrote:
>
> After a longish discussion with Detlev we came up with a new
> proposal, which hopefully is acceptable to all. We agreed that a
> command name like "clearenv" or "scrubenv" or similar (which doesn't
> require any arguments) might be too dangerous for the unexperienced
> user why randomly types commands "just to see what happens". For
> example, even if you type "erase" it will not do any damage because
> arguments are missing - but "erase all" will blow away most of your
> flash content without asking.
>
> So the idea is to call the new command "environment" (or short "env");
> usage would be then:
>
> => env clear
>
> to clear the envrionment (except read-only variables); thsi also
> allows for pretty useful additional functionality like this:
>
> => env default
>
> to reset the environment to the (compiled in) default settings.
>
> One might even consider something like
>
> => env clear all
>
> to blow away the whole env, including the read-only variables.
>
>
> Would that be acceptable to everybody?
There was general agreement that this was a good thing, but I haven't
seen any actual code yet.
I anybody working on this?
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Q: Do you know what the death rate around here is?
A: One per person.
More information about the U-Boot
mailing list