applications/siitwizard:
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 21 Dec 2008 05:24:54 +0000 (05:24 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 21 Dec 2008 05:24:54 +0000 (05:24 +0000)
- fix default lan ip
- make ip and netmask depend on client mode

applications/luci-siitwizard/luasrc/model/cbi/siitwizard.lua

index 7ba7f03c044d78c0414e1baf0c8e62e436065b10..a6b4050cef9ce8238df02f4ce0734f599e4fa0ae 100644 (file)
@@ -31,10 +31,12 @@ uci:foreach("wireless", "wifi-device",
        end)
 
 lanip = f:field(Value, "ipaddr", "LAN IP Adresse")
-lanip.value = "127.23.1.1"
+lanip.value = "172.23.1.1"
+lanip:depends("mode", "client")
 
 lanmsk = f:field(Value, "netmask", "LAN Netzmaske")
 lanmsk.value = "255.255.0.0"
+lanmsk:depends("mode", "client")
 
 
 -------------------- Control --------------------