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=
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to