static void do_store() { input_stop(); conf_store(); input_start(); OK(); }
int main(void) { int ret; ret = conf_load(); if (ret < 0) { printf("Warning: fail to initialize system configuration!\n" "Trying reset to default!\n"); conf_reset(); } system_init(); conf_store(); #ifdef CONFIG_AUTO_BOOT auto_boot(); #endif shell(); return -EINVAL; }