protocols: fix keepalive settings for pppd based protocols
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 15 Jan 2015 21:55:37 +0000 (22:55 +0100)
committerJo-Philipp Wich <jow@openwrt.org>
Thu, 15 Jan 2015 21:55:37 +0000 (22:55 +0100)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_ppp.lua
protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_pppoa.lua
protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_pppoe.lua
protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_pptp.lua

index 659e733a79a0ff76e964fcd02119ecb54362a031..b59f08bd11892be6f9921a757d22b58ef1eb0043 100644 (file)
@@ -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)"
 
index c32e2828d79489a61e585c8ece051cf915c6889c..2f3b193b17883f3092135bc4353ef365541f344e 100644 (file)
@@ -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)"
 
index ec258a528259dbd1b2aa519a10e1012d25cbbad1..d6f6349639083beff002894ba6df89fffae58fcd 100644 (file)
@@ -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)"
 
index ea9858e7de878c599d6ccd5749c75ba4f5383214..11104099cc06d55c5fc6fed14bb3321e942ec6d8 100644 (file)
@@ -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)"