summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/routing
diff options
context:
space:
mode:
authorhrs <hrs@FreeBSD.org>2012-11-18 11:22:15 +0000
committerhrs <hrs@FreeBSD.org>2012-11-18 11:22:15 +0000
commita65c6ba8dc4fe539c84c459e98c5c1ff37462b61 (patch)
tree0b3001d60f051152bf546f7119065825e3a75d8f /etc/rc.d/routing
parent2191ae37a27f4a84a6dcce450383c3854e079ba6 (diff)
downloadFreeBSD-src-a65c6ba8dc4fe539c84c459e98c5c1ff37462b61.zip
FreeBSD-src-a65c6ba8dc4fe539c84c459e98c5c1ff37462b61.tar.gz
Fix condition to check if the maximum number of FIBs is greater than 0 or not.
Spotted by: zont
Diffstat (limited to 'etc/rc.d/routing')
-rwxr-xr-xetc/rc.d/routing2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc.d/routing b/etc/rc.d/routing
index 2654b3d..0fe86c7 100755
--- a/etc/rc.d/routing
+++ b/etc/rc.d/routing
@@ -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=
OpenPOWER on IntegriCloud