[package] add missing muninlite patch after 1.0.2 update
git-svn-id: svn://svn.openwrt.org/openwrt/packages@16391 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
12fb00489a
commit
d3f1b6a7c0
11
admin/muninlite/patches/002-hostname.patch
Normal file
11
admin/muninlite/patches/002-hostname.patch
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user