Date: Thu, 28 Feb 2013 08:06:44 +0000 (UTC) From: Xin LI <delphij@FreeBSD.org> 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 Message-ID: <201302280806.r1S86iG8006388@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <andrnils gmail com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302280806.r1S86iG8006388>