From c4641d47fd1bf0f2beb24c13350def0b6c36070a Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 11 Apr 2017 02:01:38 +0200 Subject: [PATCH] gluon-mesh-batman-adv-core: dont' call 'ip' to check if primary0 exists --- .../luasrc/lib/gluon/mesh-batman-adv-core/config_mesh_interface | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/gluon-mesh-batman-adv-core/luasrc/lib/gluon/mesh-batman-adv-core/config_mesh_interface b/package/gluon-mesh-batman-adv-core/luasrc/lib/gluon/mesh-batman-adv-core/config_mesh_interface index cad04929..362b7918 100755 --- a/package/gluon-mesh-batman-adv-core/luasrc/lib/gluon/mesh-batman-adv-core/config_mesh_interface +++ b/package/gluon-mesh-batman-adv-core/luasrc/lib/gluon/mesh-batman-adv-core/config_mesh_interface @@ -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