tizen: tm1: support thordown command from console
[profile/mobile/platform/kernel/u-boot-tm1.git] / property / cmd_cboot.c
index 968bbfe..d184fd8 100755 (executable)
@@ -319,6 +319,9 @@ int do_cboot(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
 
     cmd_mode_regist(boot_mode_array);
     if((bootmode > CMD_POWER_DOWN_DEVICE) && (0 != boot_mode_array[bootmode])){
+       /* goto main_loop() if any input is hit from console */
+       if (tstc())
+               return 0;
         DBG("do_cboot: enter boot mode\n");
         boot_mode_array[bootmode]();
     }else{