Fix condition to check if the maximum number of FIBs is greater than 0 or not.
Spotted by: zont
This commit is contained in:
parent
d60ec817ea
commit
a2aa7473f3
@ -144,7 +144,7 @@ static_inet6()
|
||||
|
||||
# get the number of FIBs supported.
|
||||
fibs=$((`${SYSCTL_N} net.fibs` - 1))
|
||||
if [ -n "$fibs" ]; then
|
||||
if [ "$fibs" -gt 0 ]; then
|
||||
fibmod="-fib 0-$fibs"
|
||||
else
|
||||
fibmod=
|
||||
|
Loading…
x
Reference in New Issue
Block a user