[package] add missing muninlite patch after 1.0.2 update
authorFlorian Fainelli <florian@openwrt.org>
Mon, 8 Jun 2009 21:24:57 +0000 (21:24 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Mon, 8 Jun 2009 21:24:57 +0000 (21:24 +0000)
SVN-Revision: 16391

admin/muninlite/patches/002-hostname.patch [new file with mode: 0644]

diff --git a/admin/muninlite/patches/002-hostname.patch b/admin/muninlite/patches/002-hostname.patch
new file mode 100644 (file)
index 0000000..feb4308
--- /dev/null
@@ -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