|
Lines 364-370
Link Here
|
| 364 |
else |
364 |
else |
| 365 |
# Work out if we're a host or a net if not told |
365 |
# Work out if we're a host or a net if not told |
| 366 |
if [[ " ${x} " != *" -net "* && " ${x} " != *" -host "* ]] ; then |
366 |
if [[ " ${x} " != *" -net "* && " ${x} " != *" -host "* ]] ; then |
| 367 |
y="${x%% *}" |
367 |
y="${x% *}" |
|
|
368 |
y="${y##* }" |
| 368 |
if [[ ${x} == *" netmask "* ]] ; then |
369 |
if [[ ${x} == *" netmask "* ]] ; then |
| 369 |
x="-net ${x}" |
370 |
x="-net ${x}" |
| 370 |
elif [[ ${y} == *.*.*.*/32 ]] ; then |
371 |
elif [[ ${y} == *.*.*.*/32 ]] ; then |