mirror of
https://github.com/Doodle3D/doodle3d-firmware.git
synced 2024-12-22 11:03:48 +01:00
More network logging
This commit is contained in:
parent
f4babb5c20
commit
1425d5ef90
@ -154,7 +154,7 @@ local function init(environment)
|
|||||||
s, msg = wifi.init()
|
s, msg = wifi.init()
|
||||||
if not s then return s, msg end
|
if not s then return s, msg end
|
||||||
|
|
||||||
s, msg = netconf.init(wifi, true)
|
s, msg = netconf.init(wifi, false)
|
||||||
if not s then return s, msg end
|
if not s then return s, msg end
|
||||||
|
|
||||||
return true
|
return true
|
||||||
|
@ -76,9 +76,15 @@ function M.commitComponent(c)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function M.reloadComponent(c, silent)
|
function M.reloadComponent(c, silent)
|
||||||
log:info("reloading component '" .. c .. "'")
|
log:info("reloading component '" .. c .. "'")
|
||||||
if silent ~= nil and silent then os.execute('/etc/init.d/' .. c .. ' reload &> /dev/null')
|
local cmd = '/etc/init.d/' .. c .. ' reload'
|
||||||
else os.execute('/etc/init.d/' .. c .. ' reload') end
|
if silent ~= nil and silent then
|
||||||
|
cmd = cmd .. ' &> /dev/null'
|
||||||
|
os.execute(cmd)
|
||||||
|
else
|
||||||
|
rv = utils.captureCommandOutput(cmd)
|
||||||
|
log:info(" result reloading component '" .. c .. "': "..utils.dump(rv))
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function M.uciTableSet(config, section, options)
|
function M.uciTableSet(config, section, options)
|
||||||
|
Loading…
Reference in New Issue
Block a user