Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/postinstall Populate /etc/atf with any missing file...



details:   https://anonhg.NetBSD.org/src/rev/cffb65409283
branches:  trunk
changeset: 777647:cffb65409283
user:      jmmv <jmmv%NetBSD.org@localhost>
date:      Mon Feb 27 17:56:14 2012 +0000

description:
Populate /etc/atf with any missing files.  Fixes PR bin/45870.

diffstat:

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

diffs (22 lines):

diff -r 95eaf962497c -r cffb65409283 usr.sbin/postinstall/postinstall
--- a/usr.sbin/postinstall/postinstall  Mon Feb 27 16:51:06 2012 +0000
+++ b/usr.sbin/postinstall/postinstall  Mon Feb 27 17:56:14 2012 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: postinstall,v 1.134 2012/02/22 16:42:07 apb Exp $
+# $NetBSD: postinstall,v 1.135 2012/02/27 17:56:14 jmmv Exp $
 #
 # Copyright (c) 2002-2008 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -1605,6 +1605,10 @@
        op="$1"
        failed=0
 
+       populate_dir "${op}" true \
+               "${SRC_DIR}/etc/atf" "${DEST_DIR}/etc/atf" 644 \
+               NetBSD.conf atf-run.hooks common.conf
+
        if grep '[^#]*unprivileged-user[ \t]*=.*_atf' \
                "${DEST_DIR}/etc/atf/common.conf" >/dev/null
        then



Home | Main Index | Thread Index | Old Index