modules/admin-full: fix inconsistency in iface config
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 25 Oct 2010 17:06:56 +0000 (17:06 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 25 Oct 2010 17:06:56 +0000 (17:06 +0000)
modules/admin-full/luasrc/model/cbi/admin_network/ifaces.lua

index 5598ed3..7537799 100644 (file)
@@ -276,7 +276,9 @@ if has_pppd or has_pppoe or has_pppoa or has_3g or has_pptp or has_6in4 then
        pass:depends("proto", "ppp")
        pass:depends("proto", "3g")
        pass:depends("proto", "6in4")
+end
 
+if has_pppd or has_pppoe or has_pppoa or has_3g or has_pptp then
        ka = s:taboption("ppp", Value, "keepalive",
         translate("Keep-Alive"),
         translate("Number of failed connection tests to initiate automatic reconnect")