projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5960841
)
Make luci.sys.wifi.getiwconfig more compatible
author
Steven Barth
<steven@midlink.org>
Sun, 7 Dec 2008 19:38:22 +0000
(19:38 +0000)
committer
Steven Barth
<steven@midlink.org>
Sun, 7 Dec 2008 19:38:22 +0000
(19:38 +0000)
libs/sys/luasrc/sys.lua
patch
|
blob
|
history
diff --git
a/libs/sys/luasrc/sys.lua
b/libs/sys/luasrc/sys.lua
index fee1feeafd46e09239ccfbf4b4124281808b749c..a2c9a31119d17d4c5f863def1178799915bb7198 100644
(file)
--- 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