git: DragonFly_RELEASE_5_4 rc.d/sysctl: Rewrite to be more robust and clean

Aaron LI aly at crater.dragonflybsd.org
Wed Dec 19 18:30:34 PST 2018


commit 56e2ebc3560094ab6616236cb24576cf0f83ac58
Author: Aaron LI <aly at aaronly.me>
Date:   Thu Dec 13 13:58:27 2018 +0800

    rc.d/sysctl: Rewrite to be more robust and clean
    
    * Check the validity of the sysctl config and warn about the invalid
      syntax.
    
      A common mistake is that users set 'sysctl <mib>=<val>' in
      /etc/sysctl.conf, which generate huge amount of junk/mysterious
      messages on the console.  Now this will be warned.
    
    * Reorganize the logic to be much cleaner.
    
    * Do not bother to check whether the new value is different from the old
      one.
    
    * Rename the function for consistency.

Summary of changes:
 etc/rc.d/sysctl | 65 +++++++++++++++++++++++++++++----------------------------
 1 file changed, 33 insertions(+), 32 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/56e2ebc3560094ab6616236cb24576cf0f83ac58


-- 
DragonFly BSD source repository



More information about the Commits mailing list