From 62d1d9bdea3ee3d75d454e11c14ef6d461de2234 Mon Sep 17 00:00:00 2001 From: Piotr Dymacz Date: Thu, 20 Mar 2014 14:35:42 +0100 Subject: [PATCH] Simpler command name for resetting env variables --- u-boot/common/cmd_custom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/u-boot/common/cmd_custom.c b/u-boot/common/cmd_custom.c index 7d3565d..4db2192 100755 --- a/u-boot/common/cmd_custom.c +++ b/u-boot/common/cmd_custom.c @@ -202,7 +202,7 @@ U_BOOT_CMD(startsc, 1, 0, do_start_sc, "start serial console\n", NULL); /* * Erase environment sector */ -int do_erase_env(cmd_tbl_t * cmdtp, int flag, int argc, char *argv[]){ +int do_default_env(cmd_tbl_t * cmdtp, int flag, int argc, char *argv[]){ char buf[64]; sprintf(buf, @@ -215,7 +215,7 @@ int do_erase_env(cmd_tbl_t * cmdtp, int flag, int argc, char *argv[]){ return(run_command(buf, 0)); } -U_BOOT_CMD(eraseenv, 1, 1, do_erase_env, "erase environment sector in flash\n", NULL); +U_BOOT_CMD(defenv, 1, 1, do_default_env, "reset environment variables to their default values\n", NULL); #endif /* if defined(CONFIG_FOR_8DEVICES_CARAMBOLA2) || defined(CONFIG_FOR_DRAGINO_V2) */ #if defined(PLL_IN_FLASH_MAGIC_OFFSET) -- 2.25.1