summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-09-12 12:32:18 +0000
committerSteven Barth <steven@midlink.org>2008-09-12 12:32:18 +0000
commitbf7287c60d3819ee2322c47d191d01e55a1ec909 (patch)
tree23da2d43dd19e4903531ad614c2cb38372dcc549
parent67049e97b4ff02874d62b41f72dbbfdfd97e2e88 (diff)
Disable buffering of sysupgrade output
-rw-r--r--libs/sys/luasrc/sys.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/sys/luasrc/sys.lua b/libs/sys/luasrc/sys.lua
index 3fa34fd5b..02cea5e91 100644
--- 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