Hi Matthias,

On Tuesday 12 February 2008, Matthias Fuchs wrote:
> I am wondering if there is a way to delete all environment variables
> but not the readonly ones. The common way to delete all variables
> is to make the environment CRC invalid an do a reset. After reset
> a saveenv saves a default environment.
>
> What I want to do is to delete all variables (preferable from an autoscr
> script) but not the vendor variables like serial# and eth?addr.
>
> Wildcards in the setenv parameters would solve this issue,
> but chars like '*' or '?' are valid chars for environment variables.
>
> Any idea?

I don't know of such a solution. But such a "feature" would be handy 
sometimes. So perhaps this needs to get implemented as a new U-Boot command. 
But you should be careful. Such a command should require probably a password, 
to that users don't unintentionally erase their environment.

Best regards,
Stefan

=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: [EMAIL PROTECTED]
=====================================================================

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users

Reply via email to