From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthias Fuchs Date: Tue, 12 Feb 2008 09:44:42 +0100 Subject: [U-Boot-Users] Delete all env vars except read onlys Message-ID: <200802120944.42632.matthias.fuchs@esd-electronics.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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