From 2bc32a70789ea1274b06f13e07c11c99d2b312a6 Mon Sep 17 00:00:00 2001 From: Nick Hainke Date: Thu, 29 Oct 2020 18:34:14 +0100 Subject: [PATCH] prometheus-node-exporter-lua: fix hostapd exporter Fix "hostapd_ubus_stations.lua". The bit-lib that is imported and the one specified as the dependency do not match. Use luabitop. Signed-off-by: Nick Hainke --- utils/prometheus-node-exporter-lua/Makefile | 2 +- .../usr/lib/lua/prometheus-collectors/hostapd_ubus_stations.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/prometheus-node-exporter-lua/Makefile b/utils/prometheus-node-exporter-lua/Makefile index 6e380ea9f..877ec234b 100644 --- a/utils/prometheus-node-exporter-lua/Makefile +++ b/utils/prometheus-node-exporter-lua/Makefile @@ -4,7 +4,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=prometheus-node-exporter-lua -PKG_VERSION:=2020.10.10 +PKG_VERSION:=2020.10.29 PKG_RELEASE:=1 PKG_MAINTAINER:=Etienne CHAMPETIER diff --git a/utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/hostapd_ubus_stations.lua b/utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/hostapd_ubus_stations.lua index b9719c867..88a993c54 100644 --- a/utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/hostapd_ubus_stations.lua +++ b/utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/hostapd_ubus_stations.lua @@ -1,5 +1,5 @@ local ubus = require "ubus" -local bit = require "bit32" +local bit = require "bit" local function get_wifi_interfaces() -- based on hostapd_stations.lua local u = ubus.connect()