|
发表于 2006-12-18 14:27:13
|
显示全部楼层
Post by luofuliang
是这样的,默认下,在开机后自动运行一个程序。但有时候我可能要进入终端,做别的事情。
所以我希望通过以下的方法解决
方法1。 在启动脚步,如rc.local中,默认wait数秒,如果用户输入某个键值,则终止运行,进入终端;否则数秒后自动运行程序,进入图形界面。
方法2。 在启动脚步的过程中按Ctrl+c进入终端。这个方法以前是可以的,但现在不知道为什么不行了(我在终端下直接运行改脚步按ctrl+c是可以的,但在机器启动的过程中就不行。)
各位有别的好方法嘛??
if you need a shell, then you can add a /bin/bash in the code and not exit 1. Many bootup scripts do not accept SIGINT, or SIGQUIT, or SIGTSTP, etc anymore simply because they don't want to be interrupted. |
|