From a645b3b8433c4074e9e29866e9241e5827b27637 Mon Sep 17 00:00:00 2001 From: martti Date: Sat, 28 Sep 2002 06:17:16 +0000 Subject: [PATCH] Don't execute /etc/postinstall if -b was used. --- usr.sbin/etcupdate/etcupdate | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/etcupdate/etcupdate b/usr.sbin/etcupdate/etcupdate index 1e7d00386259..cdc32586f0ae 100644 --- a/usr.sbin/etcupdate/etcupdate +++ b/usr.sbin/etcupdate/etcupdate @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: etcupdate,v 1.6 2002/09/27 18:20:52 grant Exp $ +# $NetBSD: etcupdate,v 1.7 2002/09/28 06:17:16 martti Exp $ # # Copyright (c) 2001 The NetBSD Foundation, Inc. # All rights reserved. @@ -468,7 +468,7 @@ if [ ! -z "${NEED_PWD_MKDB}" ]; then echo "" fi fi -if [ -x /etc/postinstall ]; then +if [ -x /etc/postinstall -a -z "${BINARY}" ]; then S=`echo ${SRCDIR} | sed 's+/etc++'` echo "*** Running /etc/postinstall" /etc/postinstall -s "${S}" check