luci-mod-system: use ubus method for reboot
authorRafał Miłecki <rafal@milecki.pl>
Thu, 18 Jun 2020 13:25:18 +0000 (15:25 +0200)
committerRafał Miłecki <rafal@milecki.pl>
Thu, 10 Sep 2020 15:35:07 +0000 (17:35 +0200)
commit96bb528ccce2623a6f3b791d8263b57e878813bc
treea4799b22d18f996eb56a5c9c2be495a74830dcda
parent77af092511f31e07b93d8b29935de4671543db7c
luci-mod-system: use ubus method for reboot

It's more generic & convenient than hardcoding /sbin/reboot executable
path. procd provides "reboot" method since 2016.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
modules/luci-mod-system/htdocs/luci-static/resources/view/system/reboot.js
modules/luci-mod-system/root/usr/share/rpcd/acl.d/luci-mod-system.json