Révision 047358a0
Use sh "=" comparison, instead of bash "=="
| 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