[U-Boot-Users] Delete all env vars except read onlys

Matthias Fuchs
2008-02-12T08:44:42Z

Hi,

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?

Matthias