Changeset 6592

Show
Ignore:
Timestamp:
12/01/10 13:31:07 (2 years ago)
Author:
soma
Message:

modules/freifunk: show warning when libiwinfo is not installed.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • luci/trunk/modules/freifunk/luasrc/view/freifunk/public_status.htm

    r6559 r6592  
    22local sys = require "luci.sys" 
    33local twa = require "luci.tools.webadmin" 
    4  
    54-- System 
    65local system, model, memtotal, memcached, membuffers, memfree = sys.sysinfo() 
     
    2524local netdevs = { } 
    2625local dev 
     26local has_iwinfo = pcall(require, "iwinfo") 
    2727 
    2828-- Routes 
     
    4949<div class="cbi-map"> 
    5050    <h2><%:Wireless Overview%></h2> 
     51     
     52        <% if not has_iwinfo then %> 
     53            <div class="errorbox"> 
     54                <strong><%:Package libiwinfo required!%></strong><br /> 
     55                <%_The <em>libiwinfo</em> package is not installed. You must install this component for working wireless configuration!%> 
     56            </div> 
     57        <% end %> 
     58 
    5159        <div class="cbi-section"> 
    5260            <div class="cbi-section-node">