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

This commit is contained in:
Matthias Schiffer 2017-04-11 02:01:38 +02:00
parent 02f2d8796c
commit c4641d47fd
No known key found for this signature in database
GPG Key ID: 16EF3F64CB201D9C

View File

@ -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