diff --git a/src/network/netconfig.lua b/src/network/netconfig.lua index a3a1e8a..a0e3647 100644 --- a/src/network/netconfig.lua +++ b/src/network/netconfig.lua @@ -369,6 +369,13 @@ function M.associateSsid(ssid, passphrase, recreate) return nil,msg end + log:info(" waiting for network configuration to finish") + local waitTime = 1 + local endTime = os.time() + waitTime + while os.time() <= endTime do + -- waiting... + end + M.setStatus(M.CONNECTED,"Connected"); -- signin to connect.doodle3d.com diff --git a/src/util/utils.lua b/src/util/utils.lua index a6c3e37..f0c1020 100644 --- a/src/util/utils.lua +++ b/src/util/utils.lua @@ -145,7 +145,7 @@ end -- @treturn string Output of the command that was run. -- @todo: this function has been duplicated from rest/api/api_system.lua function M.captureCommandOutput(cmd) - local f = assert(io.popen(cmd, 'r')) + local f = assert(io.popen(cmd..' 2>&1', 'r')) local output = assert(f:read('*all')) f:close() return output