From owner-svn-src-all@FreeBSD.ORG Sun Nov 18 11:22:15 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EBFE947D; Sun, 18 Nov 2012 11:22:15 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id CEAA58FC15; Sun, 18 Nov 2012 11:22:15 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id qAIBMFSJ012973; Sun, 18 Nov 2012 11:22:15 GMT (envelope-from hrs@svn.freebsd.org) Received: (from hrs@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id qAIBMFhl012972; Sun, 18 Nov 2012 11:22:15 GMT (envelope-from hrs@svn.freebsd.org) Message-Id: <201211181122.qAIBMFhl012972@svn.freebsd.org> From: Hiroki Sato Date: Sun, 18 Nov 2012 11:22:15 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r243212 - head/etc/rc.d X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Nov 2012 11:22:16 -0000 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=