coolsnowwolf e575061c57 Revert "move lean packages to my packages feed"
This reverts commit 510d2c3e466e953eba52c1a7c4e1d423ee10e21f.
2018-10-19 13:06:16 +08:00

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