X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=protocols%2Fluci-proto-ppp%2Fluasrc%2Fmodel%2Fcbi%2Fadmin_network%2Fproto_pptp.lua;h=d81db1faeeaae7def27981b96272d2d6f0474885;hp=ea9858e7de878c599d6ccd5749c75ba4f5383214;hb=09768ed74596e70ab7270a6eb7c96fa4afd1d85d;hpb=1bb4822dca6113f73e3bc89e2acf15935e6f8e92 diff --git a/protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_pptp.lua b/protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_pptp.lua index ea9858e7d..d81db1fae 100644 --- a/protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_pptp.lua +++ b/protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_pptp.lua @@ -1,14 +1,5 @@ ---[[ -LuCI - Lua Configuration Interface - -Copyright 2011-2012 Jo-Philipp Wich - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 -]]-- +-- Copyright 2011-2012 Jo-Philipp Wich +-- Licensed to the public under the Apache License 2.0. local map, section, net = ... @@ -69,9 +60,6 @@ function keepalive_failure.cfgvalue(self, section) end end -function keepalive_failure.write() end -function keepalive_failure.remove() end - keepalive_failure.placeholder = "0" keepalive_failure.datatype = "uinteger" @@ -99,6 +87,8 @@ function keepalive_interval.write(self, section, value) end keepalive_interval.remove = keepalive_interval.write +keepalive_failure.write = keepalive_interval.write +keepalive_failure.remove = keepalive_interval.write keepalive_interval.placeholder = "5" keepalive_interval.datatype = "min(1)"