diff options
Diffstat (limited to 'board/freescale/common')
-rw-r--r-- | board/freescale/common/recovery.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/board/freescale/common/recovery.c b/board/freescale/common/recovery.c index 9f488b8..90b76c5 100644 --- a/board/freescale/common/recovery.c +++ b/board/freescale/common/recovery.c @@ -84,16 +84,14 @@ void setup_recovery_env(void) env = getenv("bootargs_android_recovery"); /* Set env to recovery mode */ + /* Only set recovery env when these env not exist, give user a + * chance to change their recovery env */ if (!env) setenv("bootargs_android_recovery", boot_args); - else - setenv("bootargs_android_recovery", env); env = getenv("bootcmd_android_recovery"); if (!env) setenv("bootcmd_android_recovery", boot_cmd); - else - setenv("bootcmd_android_recovery", env); setenv("bootcmd", "run bootcmd_android_recovery"); } |