Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/postinstall rename populate_rc to update_rc and cop...



details:   https://anonhg.NetBSD.org/src/rev/d4e39baeb3a8
branches:  trunk
changeset: 348476:d4e39baeb3a8
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Oct 19 22:17:08 2016 +0000

description:
rename populate_rc to update_rc and copy if source is newer.

diffstat:

 usr.sbin/postinstall/postinstall |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (43 lines):

diff -r 1f46baebad38 -r d4e39baeb3a8 usr.sbin/postinstall/postinstall
--- a/usr.sbin/postinstall/postinstall  Wed Oct 19 21:55:26 2016 +0000
+++ b/usr.sbin/postinstall/postinstall  Wed Oct 19 22:17:08 2016 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: postinstall,v 1.205 2016/09/02 20:25:14 kre Exp $
+# $NetBSD: postinstall,v 1.206 2016/10/19 22:17:08 christos Exp $
 #
 # Copyright (c) 2002-2015 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -1482,7 +1482,7 @@
 sysctl defcorename
 "
 
-populate_rc()
+update_rc()
 {
        local op=$1
        local dir=$2
@@ -1492,7 +1492,7 @@
            "${rcdir}" "${SRC_DIR}/etc/rc.d"; then
                return 1
        fi
-       populate_dir "${op}" true "${dir}" "${DEST_DIR}/etc/rc.d" 555 "${name}"
+       populate_dir "${op}" false "${dir}" "${DEST_DIR}/etc/rc.d" 555 "${name}"
        return $?
 }
 
@@ -1522,11 +1522,11 @@
                ${extra_scripts}
        failed=$(( ${failed} + $? ))
 
-       populate_rc "${op}" "${dir}" blacklistd \
+       update_rc "${op}" "${dir}" blacklistd \
            "${SRC_DIR}/external/bsd/blacklist/etc/rc.d"
        failed=$(( ${failed} + $? ))
 
-       populate_rc "${op}" "${dir}" unbound \
+       update_rc "${op}" "${dir}" unbound \
            "${SRC_DIR}/external/bsd/unbound/etc/rc.d"
        failed=$(( ${failed} + $? ))
 



Home | Main Index | Thread Index | Old Index