summaryrefslogtreecommitdiffhomepage
path: root/libs/sys/luasrc/sys.lua
diff options
context:
space:
mode:
Diffstat (limited to 'libs/sys/luasrc/sys.lua')
-rw-r--r--libs/sys/luasrc/sys.lua2
1 files changed, 2 insertions, 0 deletions
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