luci-0.10: merge r7240
authorJo-Philipp Wich <jow@openwrt.org>
Sat, 25 Jun 2011 23:29:42 +0000 (23:29 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sat, 25 Jun 2011 23:29:42 +0000 (23:29 +0000)
modules/admin-full/luasrc/model/cbi/admin_network/ifaces.lua

index 3debf58baffa184f3678231825cbf6474e7e0f15..cc54d4516bd9600c5adcae65e4deee707c6e532b 100644 (file)
@@ -103,6 +103,9 @@ if not ( has_pppd and has_pppoe and has_pppoa and has_3g and has_pptp ) then
        p.description = translate("You need to install \"comgt\" for UMTS/GPRS, \"ppp-mod-pppoe\" for PPPoE, \"ppp-mod-pppoa\" for PPPoA or \"pptp\" for PPtP support")
 end
 
+auto = s:taboption("physical", Flag, "auto", translate("Bring up on boot"))                                                                                            
+auto.default = (m.uci:get("network", arg[1], "proto") == "none") and auto.disabled or auto.enabled
+
 br = s:taboption("physical", Flag, "type", translate("Bridge interfaces"), translate("creates a bridge over specified interface(s)"))
 br.enabled = "bridge"
 br.rmempty = true