在系统启动过程中等待adv_debug节点的生成,生成之后修改节点属性
#! /vendor/bin/sh
while true
do
if [ -e "/sys/devices/platform/vehicle_rpmsg_m4/58266000.i2c/i2c-18/adv_debug/adv_debug" ];then
chmod 666 /sys/devices/platform/vehicle_rpmsg_m4/58266000.i2c/i2c-18/adv_debug/adv_debug
break
fi
echo "adv_debug : wait driver create adv_debug node " > /dev/kmsg
sleep 0.5
done