luci-mod-system: use new "rc" ubus object for init.d scripts
authorRafał Miłecki <rafal@milecki.pl>
Fri, 11 Sep 2020 11:26:45 +0000 (13:26 +0200)
committerPaul Donald <itsascambutmailmeanyway@gmail.com>
Sat, 30 Dec 2023 23:38:19 +0000 (23:38 +0000)
commit2e4900eb43fe0687fb116e7defea4055b9c9b8a2
treeaff5f1f41126366dafce0405ff85b5458a4d0776
parent5802709bc68e7b173cd21f0a6b62e30a0925d530
luci-mod-system: use new "rc" ubus object for init.d scripts

Convert startup.js and system.js to use the generic ubus rc method to
handle /etc/init.d/ scripts for enable/disable/start/restart/reload/stop
operation.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
[ reword commit description, convert system.js ]
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
modules/luci-mod-system/htdocs/luci-static/resources/view/system/startup.js
modules/luci-mod-system/htdocs/luci-static/resources/view/system/system.js
modules/luci-mod-system/root/usr/share/rpcd/acl.d/luci-mod-system.json