From: Jo-Philipp Wich Date: Sat, 27 Nov 2010 18:24:38 +0000 (+0000) Subject: modules/admin-full: display an error if libiwinfo is not installed X-Git-Tag: 0.10.0~348 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=aaeec06e3ec88e3126008339fc42e81fcfb50d44;p=oweals%2Fluci.git modules/admin-full: display an error if libiwinfo is not installed --- 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 d476baa5f..6a1020670 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 %> +
+ <%:Package libiwinfo required!%>
+ <%_The libiwinfo package is not installed. You must install this component for working wireless configuration!%> +
+<% end %> +