Re: [PATCH V4 rpc] rc: new ubus object for handling /etc/init.d/ scripts

2020-09-10 Thread Rafał Miłecki
On 10.09.2020 10:53, Rafał Miłecki wrote: From: Rafał Miłecki This commit adds "rc" ubus object with methods "list" and "exec" for listing and calling init.d script appropriately. It's useful for all kind of UIs (e.g. LuCI) and custom apps. Pushed with strstr -> strncmp to avoid parsing comme

[PATCH V4 rpc] rc: new ubus object for handling /etc/init.d/ scripts

2020-09-10 Thread Rafał Miłecki
From: Rafał Miłecki This commit adds "rc" ubus object with methods "list" and "exec" for listing and calling init.d script appropriately. It's useful for all kind of UIs (e.g. LuCI) and custom apps. Example: root@OpenWrt:~# ubus call rc list { "blockd": { "enabled": true,