Here in the topic you pay ask questions about how to write shell scripts and use the OpenWrt tools: jshn, ubus, hotplug etc.
I'll try to help you and you help to others.
Before writing you may check sources of the OpenWrt itself to find many samples.
I also created a GitHub repository where will try to collect samples:
Please feel free to add your own scripts there.
Wiki also has many useful articles:
- Write shell scripts in OpenWrt
- UBUS - a message bus to send commands and listen for events.
- UCI - a tool to change configuration from a command line
- JSHN a tools to parse JSON in shell scripts
- Create a sample procd init script
- All OpenWrt development articles