Browse Source

muninlite: remove patch "hostname"

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 <devel@sumpfralle.de>
lilik-openwrt-22.03
Lars Kruse 5 years ago
parent
commit
b48b144978
1 changed files with 0 additions and 11 deletions
  1. +0
    -11
      admin/muninlite/patches/002-hostname.patch

+ 0
- 11
admin/muninlite/patches/002-hostname.patch View File

@ -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

Loading…
Cancel
Save