你好:
想配置开机自启动脚本,脚本放在etc/init.d中,在rc*.d中配置软连接,是否有类似rc.local可以查询rc的等级。
谢谢!
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
请看下面e2e工程师的回复。
I believe the SysVInit defines the runlevel in environment vairable $RUNLEVEL.
However, it is not common to check runlevel in a rc script, because the script would be placed in one of the rc*.d/ directory and only runs on that runlevel.
https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1286127/am625-command-check-rc-level/4878482#4878482