git: rc.d/sysctl: Only set a sysctl when give a new value

Aaron LI aly at crater.dragonflybsd.org
Sun Feb 3 21:34:42 PST 2019


commit dcd3d479354e1d254b02314765c7c397b2c35ea0
Author: Aaron LI <aly at aaronly.me>
Date:   Mon Feb 4 13:22:02 2019 +0800

    rc.d/sysctl: Only set a sysctl when give a new value
    
    For a sysctl, compare the given value with its current value, and only
    update the value if the new value is different.  This suppresses
    unhelpful messages on the console.
    
    Reported-by: sephe

Summary of changes:
 etc/rc.d/sysctl | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/dcd3d479354e1d254b02314765c7c397b2c35ea0


-- 
DragonFly BSD source repository


More information about the Commits mailing list