|  | 
 
 发表于 2005-5-17 22:30:44
|
显示全部楼层 
| 以busybox 1。00 pre10为例: 
 在init/init.c 文件中
 run()函数
 if (a->action & ASKFIRST) {
 //char c;
 //messageD(LOG, "Waiting for enter to start '%s'"
 // "(pid %d, terminal %s)\n",
 // cmdpath, getpid(), a->terminal);
 //bb_full_write(1, press_enter, sizeof(press_enter) - 1);
 //while(read(0, &c, 1) == 1 && c != '\n')
 // ;
 }
 系统在这里当第一次启动busybox的时候等待用户敲回车键
 注释掉相应的部分就可以了。
 
 这样系统启动以后就直接进入shell了
 | 
 |