Create a sample procd init script - OpenWrt Wiki
openwrt.org › docs › guide-developerCreating a basic procd script. Now that we have a working script, we can make a service out of it. Create a file in /etc/init.d/myservice with the following content. #!/bin/sh /etc/rc.common USE_PROCD = 1 START = 95 STOP =01 start_service () { procd_open_instance procd_set_param command / bin /sh "/var/myscript.sh" procd_close_instance }