Disable buffering of sysupgrade output
authorSteven Barth <steven@midlink.org>
Fri, 12 Sep 2008 12:32:18 +0000 (12:32 +0000)
committerSteven Barth <steven@midlink.org>
Fri, 12 Sep 2008 12:32:18 +0000 (12:32 +0000)
libs/sys/luasrc/sys.lua

index 3fa34fd5bc046dfd259b2171969a74e73618c465..02cea5e91d9664dd9547163722c559483074f51d 100644 (file)
@@ -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