Files
openwrt-packages/admin/muninlite/patches/202-Fix-parameter-not-set-error.patch
Rany Hany 7d752193e4 muninlite: add some patches to address old issues
As muninlite doesn't appear to have had a release in a few years and activity
on the git repo appears to have stalled, we add some patches on our end for now.

Patches:

- 001->004 are upstream fixes from master.
- 100 is a submitted PR: https://github.com/munin-monitoring/muninlite/pull/19
  to fix https://github.com/munin-monitoring/muninlite/issues/14.
- 200->204 is a submitted PR to allow customizing the monitored network interfaces:
  https://github.com/munin-monitoring/muninlite/pull/18. Despite the large
  number of patches it is actually a trivial change.

Signed-off-by: Rany Hany <rany_hany@riseup.net>
2025-01-10 00:11:38 +01:00

22 lines
730 B
Diff

From 903869d10cd58891c77e9a633ab1fc5eb2710abb Mon Sep 17 00:00:00 2001
From: Daniel Alder <daald@users.noreply.github.com>
Date: Wed, 13 Dec 2023 17:43:24 +0100
Subject: [PATCH 202/204] Fix "parameter not set" error
./muninlite: 651: INTERFACE_NAMES_OVERRIDE: parameter not set
---
muninlite.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/muninlite.in
+++ b/muninlite.in
@@ -78,7 +78,7 @@ RES=""
for PLUG in $PLUGINS; do
case "$PLUG" in
if_|if_err_)
- if [ -z "$INTERFACE_NAMES_OVERRIDE" ]; then
+ if [ -z "${INTERFACE_NAMES_OVERRIDE:-}" ]; then
interface_names=$(sed 's/^ *//; s/:.*$//; / /d; /^lo$/d' /proc/net/dev)
else
interface_names="$INTERFACE_NAMES_OVERRIDE"