summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_ppp.lua5
-rw-r--r--protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_pppoa.lua5
-rw-r--r--protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_pppoe.lua5
-rw-r--r--protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_pptp.lua5
4 files changed, 8 insertions, 12 deletions
diff --git a/protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_ppp.lua b/protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_ppp.lua
index 659e733a7..b59f08bd1 100644
--- a/protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_ppp.lua
+++ b/protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_ppp.lua
@@ -89,9 +89,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"
@@ -119,6 +116,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)"
diff --git a/protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_pppoa.lua b/protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_pppoa.lua
index c32e2828d..2f3b193b1 100644
--- a/protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_pppoa.lua
+++ b/protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_pppoa.lua
@@ -95,9 +95,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"
@@ -125,6 +122,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)"
diff --git a/protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_pppoe.lua b/protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_pppoe.lua
index ec258a528..d6f634963 100644
--- a/protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_pppoe.lua
+++ b/protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_pppoe.lua
@@ -89,9 +89,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"
@@ -119,6 +116,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)"
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..11104099c 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
@@ -69,9 +69,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 +96,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)"