2021-04-19 16:52:04 +08:00

14 lines
372 B
Lua

module("luci.controller.syncdial",package.seeall)
function index()
if not nixio.fs.access("/etc/config/syncdial") then
return
end
entry({"admin", "network", "syncdial"}, cbi("syncdial"), _("多线多拨"), 103).dependent = true
entry({"admin", "network", "macvlan_redial"}, call("redial"), nil).leaf = true
end
function redial()
os.execute("killall -9 pppd")
end