From: Steven Barth Date: Sun, 7 Dec 2008 19:38:22 +0000 (+0000) Subject: Make luci.sys.wifi.getiwconfig more compatible X-Git-Tag: 0.9.0~918 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=dd74b986a03f10280a1a00299e9159c047bc8f6a;p=oweals%2Fluci.git Make luci.sys.wifi.getiwconfig more compatible --- diff --git a/libs/sys/luasrc/sys.lua b/libs/sys/luasrc/sys.lua index fee1feeaf..a2c9a3111 100644 --- a/libs/sys/luasrc/sys.lua +++ b/libs/sys/luasrc/sys.lua @@ -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