projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0651465
)
Make luci.sys.wifi.getiwconfig more compatible
author
Steven Barth
<steven@midlink.org>
Sun, 7 Dec 2008 19:49:45 +0000
(19:49 +0000)
committer
Steven Barth
<steven@midlink.org>
Sun, 7 Dec 2008 19:49:45 +0000
(19:49 +0000)
libs/sys/luasrc/sys.lua
patch
|
blob
|
history
diff --git
a/libs/sys/luasrc/sys.lua
b/libs/sys/luasrc/sys.lua
index
fee1fee
..
a2c9a31
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()
--- 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
local iwc = {}
for i, l in pairs(luci.util.split(luci.util.trim(cnt), "\n\n")) do