Ubuntu如何添加自启动脚本

Which system do you use? Android, Ubuntu, OOWOW or others?

Ubuntu

Which version of system do you use? Please provide the version of the system here:

22.04

Please describe your issue below:

如何将我的脚本添加到自启动,我尝试添加到/etc/ini.d /etc/rc5.d /etc/rc2.d中都无法开机启动

Post a console log of your issue below:

root@Khadas:~# runlevel
N 5

已解决,目前在/etc/rc.local中添加可以实现开机启动