mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
15 lines
373 B
Lua
15 lines
373 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
|