Projet

Général

Profil

Révision 047358a0

ID047358a0bc9876bff06197df03df2789c27bdca2
Parent ae84b39f
Enfant 0463ac10

Ajouté par Stig Sandbeck Mathisen il y a environ 11 ans

Use sh "=" comparison, instead of bash "=="

Voir les différences:

plugins/network/ipt_basic_
84 84
if [ "$1" = "config" ]; then
85 85

  
86 86
        # echo "graph_order out in"
87
        if [ "$TYPE" == "pkts" ]; then
87
        if [ "$TYPE" = "pkts" ]; then
88 88
        	echo "graph_title pkts"
89 89
	        echo 'graph_vlabel pkts per ${graph_period}'
90 90
        else
......
107 107
        exit 0
108 108
fi;
109 109

  
110
if [ "$TYPE" == "pkts" ]; then
110
if [ "$TYPE" = "pkts" ]; then
111 111
	$iptables -L munin_node -nvx | egrep "eth|ppp" | awk "{ print \$6 \".value \" \$1 }"
112 112
else
113 113
	$iptables -L munin_node -nvx | egrep "eth|ppp" | awk "{ print \$6 \".value \" \$2 }"

Formats disponibles : Unified diff