From owner-svn-src-stable-9@FreeBSD.ORG Thu Feb 28 08:06:45 2013 Return-Path: Delivered-To: svn-src-stable-9@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 01A11637; Thu, 28 Feb 2013 08:06:45 +0000 (UTC) (envelope-from delphij@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 E87171110; Thu, 28 Feb 2013 08:06:44 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id r1S86iTM006389; Thu, 28 Feb 2013 08:06:44 GMT (envelope-from delphij@svn.freebsd.org) Received: (from delphij@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id r1S86iG8006388; Thu, 28 Feb 2013 08:06:44 GMT (envelope-from delphij@svn.freebsd.org) Message-Id: <201302280806.r1S86iG8006388@svn.freebsd.org> From: Xin LI Date: Thu, 28 Feb 2013 08:06:44 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r247449 - stable/9/etc/rc.d X-SVN-Group: stable-9 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-stable-9@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for only the 9-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Feb 2013 08:06:45 -0000 Author: delphij Date: Thu Feb 28 08:06:43 2013 New Revision: 247449 URL: http://svnweb.freebsd.org/changeset/base/247449 Log: When getting the MIB, remove largest suffix instead of smallest suffix of =. This makes the following syntax work: dev.hdaa.4.nid25_config=as=1,seq=15 This is a direct commit to RELENG_9 as this file have been replaced in -HEAD. Submitted by: Andreas Nilsson Modified: stable/9/etc/rc.d/sysctl Modified: stable/9/etc/rc.d/sysctl ============================================================================== --- stable/9/etc/rc.d/sysctl Thu Feb 28 05:47:50 2013 (r247448) +++ stable/9/etc/rc.d/sysctl Thu Feb 28 08:06:43 2013 (r247449) @@ -26,7 +26,7 @@ parse_file() \#*|'') ;; *) - mib=${var%=*} + mib=${var%%=*} val=${var#*=} if current_value=`${SYSCTL} -n ${mib} 2>/dev/null`; then