Author: delphij
Date: Thu Feb 28 08:11:36 2013
New Revision: 247450
URL: http://svnweb.freebsd.org/changeset/base/247450

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_8 as this file have been replaced in
  -HEAD.
  
  Submitted by: Andreas Nilsson <andrnils gmail com>

Modified:
  stable/8/etc/rc.d/sysctl

Modified: stable/8/etc/rc.d/sysctl
==============================================================================
--- stable/8/etc/rc.d/sysctl    Thu Feb 28 08:06:43 2013        (r247449)
+++ stable/8/etc/rc.d/sysctl    Thu Feb 28 08:11:36 2013        (r247450)
@@ -26,7 +26,7 @@ parse_file()
                        \#*|'')
                                ;;
                        *)
-                               mib=${var%=*}
+                               mib=${var%%=*}
                                val=${var#*=}
 
                                if current_value=`${SYSCTL} -n ${mib} 
2>/dev/null`; then
_______________________________________________
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