From: Piotr Dymacz Date: Thu, 20 Mar 2014 13:35:42 +0000 (+0100) Subject: Simpler command name for resetting env variables X-Git-Tag: 2014-11-19~21 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=62d1d9bdea3ee3d75d454e11c14ef6d461de2234;p=oweals%2Fu-boot_mod.git Simpler command name for resetting env variables --- 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)