diff options
Diffstat (limited to 'libs/sys/luasrc')
-rw-r--r-- | libs/sys/luasrc/sys.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/sys/luasrc/sys.lua b/libs/sys/luasrc/sys.lua index 3fa34fd5bc..02cea5e91d 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 |