mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-15 18:03:30 +00:00
26 lines
502 B
Lua
26 lines
502 B
Lua
--[[
|
|
Sync Dial Luci configuration page.
|
|
Copyright (C) 2015 GuoGuo <gch981213@gmail.com>
|
|
]]--
|
|
|
|
module("luci.controller.syncdial", package.seeall)
|
|
|
|
function index()
|
|
|
|
if not nixio.fs.access("/etc/config/syncdial") then
|
|
return
|
|
end
|
|
|
|
local page
|
|
page = entry({"admin", "network", "syncdial"}, cbi("syncdial"), _("虚拟WAN"))
|
|
page.dependent = true
|
|
|
|
page = entry({"admin", "network", "macvlan_redial"}, call("redial"), nil)
|
|
page.leaf = true
|
|
|
|
end
|
|
|
|
function redial()
|
|
os.execute("killall -9 pppd")
|
|
end
|