--[[ Sync Dial Luci configuration page. Copyright (C) 2015 GuoGuo ]]-- 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