luci-app-olsr: handle empty result for non-status tables
[oweals/luci.git] / protocols / luci-proto-3g / luasrc / model / cbi / admin_network / proto_3g.lua
index 1b2e23cc42f4c187edbfcbf28694f7d86f2d7114..85c5cd60421d378376896d975a46c56defddf9ec 100644 (file)
@@ -4,7 +4,7 @@
 local map, section, net = ...
 
 local device, apn, service, pincode, username, password, dialnumber
-local ipv6, maxwait, defaultroute, metric, peerdns, dns,
+local ipv6, delay, defaultroute, metric, peerdns, dns,
       keepalive_failure, keepalive_interval, demand
 
 
@@ -47,7 +47,9 @@ dialnumber.placeholder = "*99***1#"
 
 if luci.model.network:has_ipv6() then
 
-       ipv6 = section:taboption("advanced", ListValue, "ipv6")
+       ipv6 = section:taboption("advanced", ListValue, "ipv6",
+               translate("Obtain IPv6-Address"))
+
        ipv6:value("auto", translate("Automatic"))
        ipv6:value("0", translate("Disabled"))
        ipv6:value("1", translate("Manual"))
@@ -56,12 +58,12 @@ if luci.model.network:has_ipv6() then
 end
 
 
-maxwait = section:taboption("advanced", Value, "maxwait",
+delay = section:taboption("advanced", Value, "delay",
        translate("Modem init timeout"),
        translate("Maximum amount of seconds to wait for the modem to become ready"))
 
-maxwait.placeholder = "20"
-maxwait.datatype    = "min(1)"
+delay.placeholder = "10"
+delay.datatype    = "min(1)"
 
 
 defaultroute = section:taboption("advanced", Flag, "defaultroute",