From 047358a0bc9876bff06197df03df2789c27bdca2 Mon Sep 17 00:00:00 2001 From: Stig Sandbeck Mathisen Date: Sat, 4 Oct 2014 20:02:19 +0200 Subject: [PATCH] Use sh "=" comparison, instead of bash "==" --- plugins/network/ipt_basic_ | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/network/ipt_basic_ b/plugins/network/ipt_basic_ index 03d427e2..6f05638c 100755 --- a/plugins/network/ipt_basic_ +++ b/plugins/network/ipt_basic_ @@ -84,7 +84,7 @@ IFACES=`$iptables -L munin_node -nvx | awk '$6 ~ /(eth|ppp)[0-9]/ { if (done[$6] if [ "$1" = "config" ]; then # echo "graph_order out in" - if [ "$TYPE" == "pkts" ]; then + if [ "$TYPE" = "pkts" ]; then echo "graph_title pkts" echo 'graph_vlabel pkts per ${graph_period}' else @@ -107,7 +107,7 @@ if [ "$1" = "config" ]; then exit 0 fi; -if [ "$TYPE" == "pkts" ]; then +if [ "$TYPE" = "pkts" ]; then $iptables -L munin_node -nvx | egrep "eth|ppp" | awk "{ print \$6 \".value \" \$1 }" else $iptables -L munin_node -nvx | egrep "eth|ppp" | awk "{ print \$6 \".value \" \$2 }"