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

gluon-mesh-batman-adv-core: dont' call 'ip' to check if primary0 exists

parent 02f2d879
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@ if cmd == 'setup' then
local mtu = tonumber(arg[2])
if os.execute('ip link show primary0 >/dev/null 2>&1') ~= 0 then
if not fs.access('/sys/class/net/primary0') then
os.execute([[
ip link add primary0 type dummy
echo 1 > /proc/sys/net/ipv6/conf/primary0/disable_ipv6
......
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