From 8c88934f829d4f968a5dea9bbe6657ce902e4121 Mon Sep 17 00:00:00 2001 From: Steve Price Date: Sun, 4 Jul 1999 21:08:42 +0000 Subject: Don't require interaction on INSTALL while PACKAGE_BUILDING. --- japanese/ebnetd/pkg-install | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'japanese/ebnetd') diff --git a/japanese/ebnetd/pkg-install b/japanese/ebnetd/pkg-install index 0c299c679aa3..615702a92151 100644 --- a/japanese/ebnetd/pkg-install +++ b/japanese/ebnetd/pkg-install @@ -18,8 +18,12 @@ sed -e 's/#.*//' -e 's/^/ /' -e 's/$/ /g' -e 's/ / /g' /etc/services \ if [ $? -ne 0 ] ; then YESNO=YET while [ "${YESNO}" = YET ] ; do - echo -n "May I register the \`ndtp' service name to /etc/services? ([y]/n) " - read LINE + if [ -z "${PACKAGE_BUILDING}" ]; then + echo -n "May I register the \`ndtp' service name to /etc/services? ([y]/n) " + read LINE + else + LINE=y + fi case "X${LINE}" in Xy|XY|X) YESNO=YES @@ -52,8 +56,12 @@ fi if [ -f ${PKG_PREFIX}/etc/rc.d/ndtpd.sh ] ; then YESNO=YET while [ "${YESNO}" = YET ] ; do - echo -n "${PKG_PREFIX}/etc/rc.d/ndtpd.sh already exists. May I overwrite it? (y/[n]) " - read LINE + if [ -z "${PACKAGE_BUILDING}" ]; then + echo -n "${PKG_PREFIX}/etc/rc.d/ndtpd.sh already exists. May I overwrite it? (y/[n]) " + read LINE + else + LINE=y + fi case "X${LINE}" in Xy|XY) YESNO=YES -- cgit v1.2.3