diff options
author | Steven Barth <steven@midlink.org> | 2008-09-12 12:32:18 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-09-12 12:32:18 +0000 |
commit | bf7287c60d3819ee2322c47d191d01e55a1ec909 (patch) | |
tree | 23da2d43dd19e4903531ad614c2cb38372dcc549 /libs/sys/luasrc/sys.lua | |
parent | 67049e97b4ff02874d62b41f72dbbfdfd97e2e88 (diff) |
Disable buffering of sysupgrade output
Diffstat (limited to 'libs/sys/luasrc/sys.lua')
-rw-r--r-- | libs/sys/luasrc/sys.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/sys/luasrc/sys.lua b/libs/sys/luasrc/sys.lua index 3fa34fd5bc..02cea5e91d 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 |