Skip to content
Snippets Groups Projects
Unverified Commit 6499658b authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

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.
parent 9e487f31
No related branches found
No related tags found
No related merge requests found
......@@ -38,9 +38,11 @@ if cmd == 'setup' then
file:write('bat0')
file:close()
file = assert(io.open('/sys/class/net/' .. ifname .. '/batman_adv/no_rebroadcast', 'w'))
file:write(tostring(transitive))
file:close()
file = io.open('/sys/class/net/' .. ifname .. '/batman_adv/no_rebroadcast', 'w')
if file then
file:write(tostring(transitive))
file:close()
end
elseif cmd == 'teardown' then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment