mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00:00
Use sh "=" comparison, instead of bash "=="
This commit is contained in:
parent
ae84b39f3b
commit
047358a0bc
1 changed files with 2 additions and 2 deletions
|
@ -84,7 +84,7 @@ IFACES=`$iptables -L munin_node -nvx | awk '$6 ~ /(eth|ppp)[0-9]/ { if (done[$6]
|
||||||
if [ "$1" = "config" ]; then
|
if [ "$1" = "config" ]; then
|
||||||
|
|
||||||
# echo "graph_order out in"
|
# echo "graph_order out in"
|
||||||
if [ "$TYPE" == "pkts" ]; then
|
if [ "$TYPE" = "pkts" ]; then
|
||||||
echo "graph_title pkts"
|
echo "graph_title pkts"
|
||||||
echo 'graph_vlabel pkts per ${graph_period}'
|
echo 'graph_vlabel pkts per ${graph_period}'
|
||||||
else
|
else
|
||||||
|
@ -107,7 +107,7 @@ if [ "$1" = "config" ]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
if [ "$TYPE" == "pkts" ]; then
|
if [ "$TYPE" = "pkts" ]; then
|
||||||
$iptables -L munin_node -nvx | egrep "eth|ppp" | awk "{ print \$6 \".value \" \$1 }"
|
$iptables -L munin_node -nvx | egrep "eth|ppp" | awk "{ print \$6 \".value \" \$1 }"
|
||||||
else
|
else
|
||||||
$iptables -L munin_node -nvx | egrep "eth|ppp" | awk "{ print \$6 \".value \" \$2 }"
|
$iptables -L munin_node -nvx | egrep "eth|ppp" | awk "{ print \$6 \".value \" \$2 }"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue