Disable buffering of sysupgrade output
This commit is contained in:
parent
67049e97b4
commit
bf7287c60d
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue