From 7df4e140d058ad3ac36930a72370e4111cbfd50a Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Mon, 8 Jun 2009 21:24:57 +0000 Subject: [PATCH] [package] add missing muninlite patch after 1.0.2 update SVN-Revision: 16391 --- admin/muninlite/patches/002-hostname.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 admin/muninlite/patches/002-hostname.patch diff --git a/admin/muninlite/patches/002-hostname.patch b/admin/muninlite/patches/002-hostname.patch new file mode 100644 index 0000000000..feb4308631 --- /dev/null +++ b/admin/muninlite/patches/002-hostname.patch @@ -0,0 +1,11 @@ +--- a/munin-node.in ++++ b/munin-node.in +@@ -93,7 +93,7 @@ PLUGINS=$RES + + # ===== MAIN LOOP ===== + FUNCTIONS="list nodes config fetch version quit" +-HOSTNAME=$(hostname -f 2>/dev/null || hostname) ++HOSTNAME=$(/sbin/uci get "system.@system[0].hostname" 2>/dev/null || cat /proc/sys/kernel/hostname) + echo "# munin node at $HOSTNAME" + while read arg0 arg1 + do -- 2.30.2