diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-11-27 18:24:38 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-11-27 18:24:38 +0000 |
commit | aaeec06e3ec88e3126008339fc42e81fcfb50d44 (patch) | |
tree | a7c6f4acccd0c4e48aaf25e539afa0d492cf78a4 /modules | |
parent | 34ee1629766969e514dc878ebc53208926bdaf16 (diff) |
modules/admin-full: display an error if libiwinfo is not installed
Diffstat (limited to 'modules')
-rw-r--r-- | modules/admin-full/luasrc/view/admin_network/wifi_overview.htm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/admin-full/luasrc/view/admin_network/wifi_overview.htm b/modules/admin-full/luasrc/view/admin_network/wifi_overview.htm index d476baa5f9..6a1020670b 100644 --- a/modules/admin-full/luasrc/view/admin_network/wifi_overview.htm +++ b/modules/admin-full/luasrc/view/admin_network/wifi_overview.htm @@ -87,10 +87,19 @@ $Id$ netdevs[net:ifname()] = dev:name() end end + + local has_iwinfo = pcall(require, "iwinfo") -%> <%+header%> +<% if not has_iwinfo then %> + <div class="errorbox"> + <strong><%:Package libiwinfo required!%></strong><br /> + <%_The <em>libiwinfo</em> package is not installed. You must install this component for working wireless configuration!%> + </div> +<% end %> + <script type="text/javascript" src="<%=resource%>/cbi.js"></script> <script type="text/javascript">//<![CDATA[ var iwxhr = new XHR(); |