소스 검색

gluon-mesh-batman-adv-core: remove 'gluon.batman_adv' Lua module

It is not used anymore.
Matthias Schiffer 8 년 전
부모
커밋
f38bbf0d2c
1개의 변경된 파일0개의 추가작업 그리고 15개의 파일을 삭제
  1. 0 15
      package/gluon-mesh-batman-adv-core/files/usr/lib/lua/gluon/batman_adv.lua

+ 0 - 15
package/gluon-mesh-batman-adv-core/files/usr/lib/lua/gluon/batman_adv.lua

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