init.rc开机自动运行bonnie++
想在android开机启动时自动运行bonnie++,在init.rc中添加了一个
service test /xx/xx/test
class core
user root
group root
oneshot
test脚本里是一行bonnie++的命令"/xx/xx/bonnie++ -d /sdcard/ -s 1344",发现脚本test在开机启动时确实执行了,但是logcat里面报错"can't open file ./Bonnie.1261.000",如果是在控制台console里面手动执行test脚本则不会报出这样的错,不知道问题在哪里