Révision 17f78427
Whitespace cleanup
- remove trailing whitespace
- remove empty lines at the end of files
| plugins/ipvs/ipvs_active | ||
|---|---|---|
| 35 | 35 |
|
| 36 | 36 |
|
| 37 | 37 |
if [ "$1" = "autoconf" ]; then |
| 38 |
echo yes
|
|
| 38 |
echo yes |
|
| 39 | 39 |
exit 0 |
| 40 | 40 |
fi |
| 41 | 41 |
|
| ... | ... | |
| 64 | 64 |
function get_ip {
|
| 65 | 65 |
# Read the output |
| 66 | 66 |
ipvsadm -l -n | nl | while read line; do |
| 67 |
# If match the ip, print the line number
|
|
| 67 |
# If match the ip, print the line number |
|
| 68 | 68 |
if ( echo $line | grep -e $IP > /dev/null ); then |
| 69 | 69 |
MAT=`echo $line | cut -d " " -f 1` |
| 70 | 70 |
echo $MAT |
| ... | ... | |
| 84 | 84 |
|
| 85 | 85 |
# Parse lines |
| 86 | 86 |
while read line; do |
| 87 |
|
|
| 87 |
|
|
| 88 | 88 |
# Get line numbers |
| 89 | 89 |
N=`echo $line | cut -d " " -f 1` |
| 90 | 90 |
|
| ... | ... | |
| 94 | 94 |
if ( echo $line | grep -e TCP -e UDP > /dev/null ); then |
| 95 | 95 |
break |
| 96 | 96 |
fi |
| 97 |
|
|
| 97 |
|
|
| 98 | 98 |
COUNT=`expr $COUNT + 1` |
| 99 | 99 |
fi |
| 100 | 100 |
done < $F1 |
Formats disponibles : Unified diff