svn commit: r243212 - head/etc/rc.d

Hiroki Sato hrs at FreeBSD.org
Sun Nov 18 11:22:16 UTC 2012


Author: hrs
Date: Sun Nov 18 11:22:15 2012
New Revision: 243212
URL: http://svnweb.freebsd.org/changeset/base/243212

Log:
  Fix condition to check if the maximum number of FIBs is greater than 0 or not.
  
  Spotted by:	zont

Modified:
  head/etc/rc.d/routing

Modified: head/etc/rc.d/routing
==============================================================================
--- head/etc/rc.d/routing	Sun Nov 18 06:25:37 2012	(r243211)
+++ head/etc/rc.d/routing	Sun Nov 18 11:22:15 2012	(r243212)
@@ -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=


More information about the svn-src-head mailing list