From: Steven Barth Date: Fri, 12 Sep 2008 12:32:18 +0000 (+0000) Subject: Disable buffering of sysupgrade output X-Git-Tag: 0.9.0~1339 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=bf7287c60d3819ee2322c47d191d01e55a1ec909;p=oweals%2Fluci.git Disable buffering of sysupgrade output --- 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