From: Nick Hainke Date: Thu, 29 Oct 2020 17:34:14 +0000 (+0100) Subject: prometheus-node-exporter-lua: fix hostapd exporter X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=2bc32a70789ea1274b06f13e07c11c99d2b312a6;p=openwrt-packages.git 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 --- 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()