From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Roese Date: Wed, 13 Feb 2008 09:56:34 +0100 Subject: [U-Boot-Users] Delete all env vars except read onlys In-Reply-To: <200802130921.38894.matthias.fuchs@esd-electronics.com> References: <200802120944.42632.matthias.fuchs@esd-electronics.com> <200802121549.49402.sr@denx.de> <200802130921.38894.matthias.fuchs@esd-electronics.com> Message-ID: <200802130956.34396.sr@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Matthias, On Wednesday 13 February 2008, Matthias Fuchs wrote: > what about a 'scrubenv' or 'cleanenv' command that tries to unset all > variables leaving readonlys untouched. Or 'resetenv'? > The command could request a confirmation: > > => scrubenv > Do you really want to do this ('yes' or 'no')? yes > Can't overwrite "serial#" > Can't overwrite "ethaddr" > => saveenv Yes, I was just thinking (while showering, no joke) about this and had the same idea with an 'yes' check. :) > The above output is faked. So I did not start coding :-) > > What do you think? Looks good to me. 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: office at denx.de =====================================================================