service ServiceName Pathshell Pathshellscript
oneshot
ServiceName: 填寫service名稱
Pathshell: sh的路徑
Pathshellscript: shellscript的路徑
ex.
執行lnset.sh
service lnset /system/bin/sh /system/etc/lnset.sh
oneshot
cat lnset.sh
ln -s /dev/ttymxc1 /pipecfromsh
ln -s /dev/ttymxc1 /cache/pipecfromsh
沒有留言:
張貼留言