/etc/rc.d/rc.local
chmod +x /etc/rc.d/rc.local
假设/opt/script/autostart.sh是脚本运行路径,给予可执行权限
/opt/script/autostart.sh
chmod +x /opt/script/autostart.sh
/etc/rc.d/rc/local