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()
|
||||
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
|
||||
|
||||
return true
|
||||
|
@ -76,9 +76,15 @@ function M.commitComponent(c)
|
||||
end
|
||||
|
||||
function M.reloadComponent(c, silent)
|
||||
log:info("reloading component '" .. c .. "'")
|
||||
if silent ~= nil and silent then os.execute('/etc/init.d/' .. c .. ' reload &> /dev/null')
|
||||
else os.execute('/etc/init.d/' .. c .. ' reload') end
|
||||
log:info("reloading component '" .. c .. "'")
|
||||
local cmd = '/etc/init.d/' .. c .. ' reload'
|
||||
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
|
||||
|
||||
function M.uciTableSet(config, section, options)
|
||||
|
Loading…
Reference in New Issue
Block a user