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:
67049e9
)
Disable buffering of sysupgrade output
author
Steven Barth
<steven@midlink.org>
Fri, 12 Sep 2008 12:32:18 +0000
(12:32 +0000)
committer
Steven Barth
<steven@midlink.org>
Fri, 12 Sep 2008 12:32:18 +0000
(12:32 +0000)
libs/sys/luasrc/sys.lua
patch
|
blob
|
history
diff --git
a/libs/sys/luasrc/sys.lua
b/libs/sys/luasrc/sys.lua
index 3fa34fd5bc046dfd259b2171969a74e73618c465..02cea5e91d9664dd9547163722c559483074f51d 100644
(file)
--- a/
libs/sys/luasrc/sys.lua
+++ b/
libs/sys/luasrc/sys.lua
@@
-70,6
+70,8
@@
function flash(image, kpattern)
cmd = cmd .. "'" .. image:gsub("'", "") .. "' 2>/dev/null"
local fp = io.popen(cmd)
+ fp:setvbuf("no")
+
local line = fp:read()
if line == "Invalid image type" then