summaryrefslogtreecommitdiffhomepage
path: root/protocols
diff options
context:
space:
mode:
Diffstat (limited to 'protocols')
-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 659e733a79..b59f08bd11 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 c32e2828d7..2f3b193b17 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 ec258a5282..d6f6349639 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 ea9858e7de..11104099cc 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)"