luci-base, luci-mod-network: invoke ifdown directly in interface overview
authorJo-Philipp Wich <jo@mein.io>
Sun, 3 Nov 2019 16:29:29 +0000 (17:29 +0100)
committerJo-Philipp Wich <jo@mein.io>
Sun, 3 Nov 2019 16:56:58 +0000 (17:56 +0100)
commitf16a47042c568ccc843897f784f9d748cd630ea2
tree9a868e3f0e426605e0e057fac8d042fc3be4c4ac
parent9cb4aa1306a7458b795822509dd152085d7c002e
luci-base, luci-mod-network: invoke ifdown directly in interface overview

Replace the `iface_down` endpoint with a direct invocation of `/sbin/ifdown`
and replace the interface connectivity check with a call to the new
`remote_addr` endpoint.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/root/usr/share/rpcd/acl.d/luci-base.json
modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js