muninlite: remove patch "hostname"
authorLars Kruse <redacted>
Sun, 19 Apr 2020 12:26:55 +0000 (14:26 +0200)
committerLars Kruse <redacted>
Sun, 19 Apr 2020 12:30:01 +0000 (14:30 +0200)
Since muninlite 2.0 the unpatched upstream also uses
/proc/sys/kernel/hostname.  Thus the patch is not necessary anymore.

Signed-off-by: Lars Kruse <redacted>
admin/muninlite/patches/002-hostname.patch [deleted file]

diff --git a/admin/muninlite/patches/002-hostname.patch b/admin/muninlite/patches/002-hostname.patch
deleted file mode 100644 (file)
index a232843..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/muninlite.in
-+++ b/muninlite.in
-@@ -113,7 +113,7 @@ PLUGINS=$RES
- # ===== MAIN LOOP =====
- FUNCTIONS="list nodes config fetch version quit"
--HOSTNAME=$( { hostname -f || hostname || cat /proc/sys/kernel/hostname || echo "unknown"; } 2>/dev/null )
-+HOSTNAME=$(/sbin/uci get "system.@system[0].hostname" 2>/dev/null || cat /proc/sys/kernel/hostname)
- echo "# munin node at $HOSTNAME"
- while read -r arg0 arg1
- do
git clone https://git.99rst.org/PROJECT