From aaeec06e3ec88e3126008339fc42e81fcfb50d44 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sat, 27 Nov 2010 18:24:38 +0000 Subject: modules/admin-full: display an error if libiwinfo is not installed --- modules/admin-full/luasrc/view/admin_network/wifi_overview.htm | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'modules/admin-full') 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 %> +