From bf7287c60d3819ee2322c47d191d01e55a1ec909 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Fri, 12 Sep 2008 12:32:18 +0000 Subject: [PATCH] Disable buffering of sysupgrade output --- libs/sys/luasrc/sys.lua | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.25.1