diff options
author | Jun Kuriyama <kuriyama@FreeBSD.org> | 1998-04-24 14:37:49 +0000 |
---|---|---|
committer | Jun Kuriyama <kuriyama@FreeBSD.org> | 1998-04-24 14:37:49 +0000 |
commit | af5efb5e2484e55c0f50fbc3faf7be198ce31820 (patch) | |
tree | 545406535be11cb649f7097508c51e2aced1f47b /japanese/ndtpd/pkg-install | |
parent | Upgrade to 2.8.2 (diff) |
I've forgotten to add ntdpd-ja.info for install-info.
Use PACKAGE_BUILDING for intaractive install.
Notes
Notes:
svn path=/head/; revision=10671
Diffstat (limited to '')
-rw-r--r-- | japanese/ndtpd/pkg-install | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/japanese/ndtpd/pkg-install b/japanese/ndtpd/pkg-install index ba2b1d2f7161..1d8e565031ae 100644 --- a/japanese/ndtpd/pkg-install +++ b/japanese/ndtpd/pkg-install @@ -15,7 +15,11 @@ sed -e 's/#.*//' -e 's/^/ /' -e 's/$/ /g' -e 's/ / /g' /etc/services \ | grep ' ndtp ' > /dev/null 2>&1 if [ $? -ne 0 ] ; then - YESNO=YET + if [ "${IS_INTERACTIVE}"x = "x" ]; then + YESNO=YES + else + YESNO=YET + fi while [ "${YESNO}" = YET ] ; do echo -n "May I register the \`ndtp' service name to /etc/services? ([y]/n) " read LINE @@ -49,7 +53,11 @@ fi # Copy a rc-file to `${PKG_PREFIX}/etc/rc.d/ndtpd.sh'. # if [ -f ${PKG_PREFIX}/etc/rc.d/ndtpd.sh ] ; then - YESNO=YET + if [ "${IS_INTERACTIVE}"x = "x" ]; then + YESNO=YES + else + YESNO=YET + fi while [ "${YESNO}" = YET ] ; do echo -n "${PKG_PREFIX}/rc.d/ndtpd.sh already exists. May I overwrite it? (y/[n]) " read LINE |