gluon-mesh-batman-adv-core: don't print error message when no_rebroadcast is not supported
batman-adv 2017.0 doesn't need (or support) no_rebroadcast anymore. Don't fail when the file doesn't exist.
This commit is contained in:
parent
9e487f3104
commit
6499658b52
@ -38,9 +38,11 @@ if cmd == 'setup' then
|
|||||||
file:write('bat0')
|
file:write('bat0')
|
||||||
file:close()
|
file:close()
|
||||||
|
|
||||||
file = assert(io.open('/sys/class/net/' .. ifname .. '/batman_adv/no_rebroadcast', 'w'))
|
file = io.open('/sys/class/net/' .. ifname .. '/batman_adv/no_rebroadcast', 'w')
|
||||||
file:write(tostring(transitive))
|
if file then
|
||||||
file:close()
|
file:write(tostring(transitive))
|
||||||
|
file:close()
|
||||||
|
end
|
||||||
|
|
||||||
elseif cmd == 'teardown' then
|
elseif cmd == 'teardown' then
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user