Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Nov 2012 11:22:15 +0000 (UTC)
From:      Hiroki Sato <hrs@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r243212 - head/etc/rc.d
Message-ID:  <201211181122.qAIBMFhl012972@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211181122.qAIBMFhl012972>