标签:ini product module system disable sys 脚本 nbsp dev
1、编写相应的执行脚本文件ledgpio.sh,将其放在device/rockchip/rk3399路径下:
#!/system/bin/sh
insmod /system/lib/modules/ledgpio.ko
2、修改device.mk文件,添加以下内容:
#ledgpio
PRODUCT_COPY_FILES += \
device/rockchip/rk3399/ledgpio.sh:system/bin/ledgpio.sh
3、在init.rk30board.rc中创建服务:
service ledgpio /system/bin/ledgpio.sh
user root
group root
disabled
oneshot
4、在init.rk30board.rc中启动服务:
on property:sys.boot_completed=1
start ledgpio
标签:ini product module system disable sys 脚本 nbsp dev
原文地址:http://www.cnblogs.com/dq23578/p/6956904.html