Disable buffering of sysupgrade output

This commit is contained in:
Steven Barth 2008-09-12 12:32:18 +00:00
parent 67049e97b4
commit bf7287c60d

View file

@ -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