From: Steven Barth Date: Tue, 22 Apr 2008 20:37:30 +0000 (+0000) Subject: * Minor bugfixes X-Git-Tag: 0.8.0~1110 X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=0ea68c4f748860f625eb4163ed3e91f80a593350 * Minor bugfixes --- diff --git a/INSTALL b/INSTALL index 6cccc77f9..8c3bbe8d7 100644 --- a/INSTALL +++ b/INSTALL @@ -13,7 +13,7 @@ TOC: 3. Run ./scripts/feeds update - 4. Run ./scripts/feeds install luci-lua ffluci + 4. Run ./scripts/feeds install ffluci 5. Type make menuconfig and you will find ffluci in the menu "Administration" diff --git a/module/public-core/src/view/public_status/index.htm b/module/public-core/src/view/public_status/index.htm index 381333107..44c4ea7a7 100644 --- a/module/public-core/src/view/public_status/index.htm +++ b/module/public-core/src/view/public_status/index.htm @@ -34,24 +34,7 @@ <%:signal Signal%> <%:noise Rausch%> -<%for k, v in pairs(wifi) do%> - -<%=k%> -<%=v[1]%> -<%=v.Frequency%> -<%=v["Tx-Power"]%> -<%=v["Bit Rate"]%> -<%=v["RTS thr"]%> -<%=v["Fragment thr"]%> -<%=v["Link Quality"]%> -<%=v["Signal level"]%> -<%=v["Noise level"]%> - - -<%:essid ESSID%>: <%=v.ESSID%> -<%:bssid BSSID%>: <%=(v.Cell or v["Access Point"])%> - -<%end%> +<%=ffluci.sys.httpget("http://127.0.0.1" .. controller .. "/sudo/status/iwconfig")%>

@@ -64,7 +47,15 @@ <%:iface Schnittstelle%> <% -local be = (routes[1] and routes[1].Mask:sub(-2) == "00") + +-- UGLY hack is UGLY +if routes[1] and routes[1].Gateway:sub(-2) == "00" then + local be = true +else + local be = false +end + + for i, rt in pairs(routes) do %> diff --git a/module/public-core/src/view/public_status/routes.htm b/module/public-core/src/view/public_status/routes.htm index 156a0336f..cd694d324 100644 --- a/module/public-core/src/view/public_status/routes.htm +++ b/module/public-core/src/view/public_status/routes.htm @@ -14,7 +14,11 @@ local routes = ffluci.sys.net.routes() -- UGLY hack is UGLY -local be = (routes[1] and routes[1].Mask:sub(-2) == "00") +if routes[1] and routes[1].Gateway:sub(-2) == "00" then + local be = true +else + local be = false +end for i, r in pairs(routes) do %> diff --git a/module/public-core/src/view/sudo_status/iwconfig.htm b/module/public-core/src/view/sudo_status/iwconfig.htm new file mode 100644 index 000000000..e06b631ac --- /dev/null +++ b/module/public-core/src/view/sudo_status/iwconfig.htm @@ -0,0 +1,21 @@ +<% +ffluci.http.textheader() +for k, v in pairs(ffluci.sys.wifi.getiwconfig()) do +%> + +<%=k%> +<%=v[1]%> +<%=v.Frequency%> +<%=v["Tx-Power"]%> +<%=v["Bit Rate"]%> +<%=v["RTS thr"]%> +<%=v["Fragment thr"]%> +<%=v["Link Quality"]%> +<%=v["Signal level"]%> +<%=v["Noise level"]%> + + +ESSID: <%=v.ESSID%> +BSSID: <%=(v.Cell or v["Access Point"])%> + +<%end%>