mirror of
https://github.com/openwrt/luci.git
synced 2025-12-21 19:14:34 +04:00
Make luci.sys.wifi.getiwconfig more compatible
This commit is contained in:
@@ -627,7 +627,7 @@ wifi = {}
|
||||
--- Get iwconfig output for all wireless devices.
|
||||
-- @return Table of tables containing the iwconfing output for each wifi device
|
||||
function wifi.getiwconfig()
|
||||
local cnt = luci.util.exec("/usr/sbin/iwconfig 2>/dev/null")
|
||||
local cnt = luci.util.exec("PATH=/sbin:/usr/sbin iwconfig 2>/dev/null")
|
||||
local iwc = {}
|
||||
|
||||
for i, l in pairs(luci.util.split(luci.util.trim(cnt), "\n\n")) do
|
||||
|
||||
Reference in New Issue
Block a user