%+header%> <%local uci = luci.model.uci.cursor()%> <%local laninfo = luci.model.uci.cursor():get_all("network", "lan")%> <% if uci:get("functionlist","functionlist","SUPPORT_IPV6_SETTING_INDEPENDENT") == "1" then laninfo["dns"] = laninfo["prev_dns"] or "" laninfo["ip6addr"] = laninfo["prev_ip6addr"] or "" laninfo["ip6gw"] = laninfo["prev_ip6gw"] or "" end local lan_ip = luci.util.trim(luci.util.exec("ifconfig br-lan | grep \"inet addr\" | awk -F \" \" '{print $2}' | awk -F \":\" '{print $2}'")) local lan_mask = luci.util.trim(luci.util.exec("ifconfig br-lan | grep \"inet addr\" | awk -F \" \" '{print $4}' | awk -F \":\" '{print $2}'")) local lan_gw = luci.util.trim(luci.util.exec("route -n| grep 'UG[ \t]'|awk '{ printf $2 }'")) if lan_gw == "" then lan_gw = laninfo['gateway'] end %> <% if uci:get('functionlist','functionlist','SUPPORT_ETHERNET_VLAN') == '1' then -----#### SUPPORT_ETHERNET_VLAN START ### %> <% end-----#### SUPPORT_ETHERNET_VLAN END #### %>
<%+footer%>