mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
Merge pull request #6327 from aparcar/fancy_backport
prometheus-node-exporter-lua: handle fancy release backport to 18.06
This commit is contained in:
@@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=prometheus-node-exporter-lua
|
PKG_NAME:=prometheus-node-exporter-lua
|
||||||
PKG_VERSION:=2017.12.08
|
PKG_VERSION:=2017.12.08
|
||||||
PKG_RELEASE:=4
|
PKG_RELEASE:=5
|
||||||
|
|
||||||
PKG_MAINTAINER:=Christian Simon <simon@swine.de>
|
PKG_MAINTAINER:=Christian Simon <simon@swine.de>
|
||||||
PKG_LICENSE:=Apache-2.0
|
PKG_LICENSE:=Apache-2.0
|
||||||
|
|||||||
+1
-1
@@ -6,7 +6,7 @@ local labels = {
|
|||||||
board_name = string.sub(get_contents("/tmp/sysinfo/board_name"), 1, -2)
|
board_name = string.sub(get_contents("/tmp/sysinfo/board_name"), 1, -2)
|
||||||
}
|
}
|
||||||
|
|
||||||
for k, v in string.gmatch(get_contents("/etc/openwrt_release"), "(DISTRIB_%w+)='(%w+)'\n") do
|
for k, v in string.gmatch(get_contents("/etc/openwrt_release"), "(DISTRIB_%w+)='(.-)'\n") do
|
||||||
if k == "DISTRIB_ID" then
|
if k == "DISTRIB_ID" then
|
||||||
labels["id"] = v
|
labels["id"] = v
|
||||||
elseif k == "DISTRIB_RELEASE" then
|
elseif k == "DISTRIB_RELEASE" then
|
||||||
|
|||||||
Reference in New Issue
Block a user