1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Update luci-mod-admin-full

This commit is contained in:
Ycarus 2018-06-04 22:13:57 +02:00
parent 94e429e4ba
commit d69edbabce
3 changed files with 347 additions and 3 deletions

View file

@ -101,9 +101,9 @@
<%+header%>
<% if not has_iwinfo then %>
<div class="errorbox">
<strong><%:Package libiwinfo required!%></strong><br />
<%_The <em>libiwinfo-lua</em> package is not installed. You must install this component for working wireless configuration!%>
<div class="alert-message warning">
<h4><%:Package libiwinfo required!%></h4>
<p><%_The <em>libiwinfo-lua</em> package is not installed. You must install this component for working wireless configuration!%></p>
</div>
<% end %>

View file

@ -13,6 +13,7 @@
local has_ipv6 = fs.access("/proc/net/ipv6_route")
local has_dhcp = fs.access("/etc/config/dhcp")
local has_mptcp = luci.sys.exec("sysctl -n net.mptcp.mptcp_enabled | tr -d '\n'")
local has_wifi = ((fs.stat("/etc/config/wireless", "size") or 0) > 0)
local sysinfo = luci.util.ubus("system", "info") or { }