OpenWrt Forum Archive

Topic: Creating custom rpcd plugin

The content of this topic has been archived on 5 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello,

I'm trying to include my own ubus object using rpcd plugin executables functionality. I'm following this link: http://wiki.openwrt.org/doc/techref/rpcd. According to this article, "executables stored in /usr/libexec/rpcd/ directory will be runned by rpcd".
But my system is missing the directory /usr/libexec/rpcd/. Is there an alternative directory which I can use? How can I export a script to ubus so I can acess with ubus call or ubus list?

Here is the information about the firmware version I'm using:
root@MANTIS:/# cat /etc/openwrt_release
DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='Chaos Calmer'
DISTRIB_REVISION='r46159'
DISTRIB_CODENAME='chaos_calmer'
DISTRIB_TARGET='x86/geode'
DISTRIB_DESCRIPTION='OpenWrt Chaos Calmer 15.05'
DISTRIB_TAINTS='no-all'

Any tip will be very helpful,
Thanks.

I've found the solution. If there is no /usr/libexec/rpcd/ directory, you just have to create it.

The discussion might have continued from here.