2、在init.{hardware}.board.rc中增加执行上述脚本的service
service init-setup /system/bin/init.mbx.sh
class main
user root
group root
oneshot
把service设为class main,则在启动class类的serive自动启动init-setup的service。
如果想在更后的时间执行shell脚本,可如下设置:
service init-setup /system/bin/init.mbx.sh
user root
group root
disabled
oneshot
2、在init.{hardware}.board.rc中增加执行上述脚本的service
service init-setup /system/bin/init.mbx.sh
class main
user root
group root
oneshot
把service设为class main,则在启动class类的serive自动启动init-setup的service。
如果想在更后的时间执行shell脚本,可如下设置:
service init-setup /system/bin/init.mbx.sh
user root
group root
disabled
oneshot
on property:sys.boot_completed=1
start init-setup
本资料:来源于网络