[package] add missing muninlite patch after 1.0.2 update
[openwrt/svn-archive/archive.git] / admin / muninlite / patches / 002-hostname.patch
1 --- a/munin-node.in
2 +++ b/munin-node.in
3 @@ -93,7 +93,7 @@ PLUGINS=$RES
4
5 # ===== MAIN LOOP =====
6 FUNCTIONS="list nodes config fetch version quit"
7 -HOSTNAME=$(hostname -f 2>/dev/null || hostname)
8 +HOSTNAME=$(/sbin/uci get "system.@system[0].hostname" 2>/dev/null || cat /proc/sys/kernel/hostname)
9 echo "# munin node at $HOSTNAME"
10 while read arg0 arg1
11 do