mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01:00
Use sh "=" comparison, instead of bash "=="
This commit is contained in:
parent
ae84b39f3b
commit
047358a0bc
@ -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 }"
|
||||
|
Loading…
Reference in New Issue
Block a user