diff options
author | Steven Barth <steven@midlink.org> | 2008-12-07 19:38:22 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-12-07 19:38:22 +0000 |
commit | dd74b986a03f10280a1a00299e9159c047bc8f6a (patch) | |
tree | edc5dff5081b52ceed8b34620efbb261dfcfef3f | |
parent | 596084109819606afa5e05a42b7c8757f96f8689 (diff) |
Make luci.sys.wifi.getiwconfig more compatible
-rw-r--r-- | libs/sys/luasrc/sys.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |