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_pppoe.lua;h=d844c01db0c6b2419a036af96e69a15d3388770b;hp=ec258a528259dbd1b2aa519a10e1012d25cbbad1;hb=828202ef5237f48e6f53d15ca198e2c6815b7cd7;hpb=1bb4822dca6113f73e3bc89e2acf15935e6f8e92 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..d844c01db 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 @@ -1,14 +1,5 @@ ---[[ -LuCI - Lua Configuration Interface - -Copyright 2011 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 Jo-Philipp Wich +-- Licensed to the public under the Apache License 2.0. local map, section, net = ... @@ -39,12 +30,13 @@ service.placeholder = translate("auto") if luci.model.network:has_ipv6() then - - ipv6 = section:taboption("advanced", Flag, "ipv6", + ipv6 = section:taboption("advanced", ListValue, "ipv6", + translate("Obtain IPv6-Address"), translate("Enable IPv6 negotiation on the PPP link")) - - ipv6.default = ipv6.disabled - + ipv6:value("auto", translate("Automatic")) + ipv6:value("0", translate("Disabled")) + ipv6:value("1", translate("Manual")) + ipv6.default = "auto" end @@ -89,9 +81,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 +108,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)"