D1s tina 如何开机自启动程序
- 
					
					
					
					
 busybox-init-base-files/etc/init.d 编写S99启动脚本。这种方法无效 
- 
					
					
					
					
 @mafei 你是不是有一个S99 的脚本了,可以先试一下在/etc/init.d/rcS 中添加脚本,看看可不可以启动 
- 
					
					
					
					
 @m_xiaotao S99启动脚本写了,手动调用也能启动,就是不知道怎么开机调用,试了很多方式,没蛋用 
- 
					
					
					
					
 @mafei 直接在/etc/init.d/rcS 中添加需要执行的代码,看看可不可以启动,脚本中也可以加一些echo 判断一下执行到哪里,最好加两张截图,看看为啥没执行 
- 
					
					
					
					
 T113,tina5.0是这个位置 
 /openwrt/openwrt/package/base-files/files/etc/init.d
 中建立脚本,名字随便取,值越大,越靠后
 start()开机执行
 stop()关机(poweroff)执行#!/bin/sh /etc/rc.common Copyright (C) 2008 OpenWrt.orgSTART=98 
 STOP=99
 start() {
 echo "rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr" > /dev/console
 }
 stop() {
 echo "SSSSSSSSSSSSSSSTOPPPPPPPP" > /dev/console
 }
- 
					
					
					
					
 此回复已被删除!
- 
					
					
					
					
 @mafei target/allwinner/d1s-nezha/base-files/etc/rc.local Put your custom commands here that should be executed oncethe system init finished. By default this file does nothing.dd if=/dev/zero of=/dev/fb0 
 amixer -D hw:audiocodec cset name='Headphone Switch' 1
 amixer -D hw:audiocodec cset name='Headphone Volume' 7
 amixer -D hw:audiocodec cset numid=31 1
 /app/main &
 exit 0添加无需编写S99脚本 
- 
					
					
					
					
 @mafei 在 D1s tina 如何开机自启动程序 中说: the system init finished. By default this file does nothing. 或 
 target/allwinner/t113-nezha/busybox-init-base-files/etc/init.d/rc.final
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号