From f38bbf0d2cd43e3698b4b36d1583b31e56d6e4c2 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 24 Apr 2016 09:47:06 +0200 Subject: [PATCH] gluon-mesh-batman-adv-core: remove 'gluon.batman_adv' Lua module It is not used anymore. --- .../files/usr/lib/lua/gluon/batman_adv.lua | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 package/gluon-mesh-batman-adv-core/files/usr/lib/lua/gluon/batman_adv.lua diff --git a/package/gluon-mesh-batman-adv-core/files/usr/lib/lua/gluon/batman_adv.lua b/package/gluon-mesh-batman-adv-core/files/usr/lib/lua/gluon/batman_adv.lua deleted file mode 100644 index cd559fe5..00000000 --- a/package/gluon-mesh-batman-adv-core/files/usr/lib/lua/gluon/batman_adv.lua +++ /dev/null @@ -1,15 +0,0 @@ -local nixio = require 'nixio' - -module 'gluon.batman_adv' - -function interfaces(bat_if) - local iter = nixio.fs.glob('/sys/class/net/' .. bat_if .. '/lower_*') - return function() - local path = iter() - if path == nil then - return nil - end - local ifname = path:match('/lower_([^/]+)$') - return ifname - end -end