在Openwrt系统中的lib目录下的functions子目录中运行procd.sh脚本
发布时间
阅读量:
阅读量
在/sbin/procd进程启动之后,Openwrt系统中的/lib/functions/procd.sh脚本会持续监听hotplug事件的触发情况。一旦检测到相关事件发生,系统将依据hotplug.json文件的配置信息,调用/etc/hotplug.d/目录下与该事件相对应的脚本文件进行处理。
[root@PandoraBox:/lib/functions]#cat /lib/functions/procd.sh
# procd API:
#
# procd_open_service(name, [script]):
# Initialize a new procd command message containing a service with one or more instances
#
# procd_close_service()
# Send the command message for the service
#
# procd_open_instance([name]):
# Add an instance to the service described by the previous procd_open_service call
#
全部评论 (0)
还没有任何评论哟~
