diff options
Diffstat (limited to 'japanese/ebnetd/pkg-install')
-rw-r--r-- | japanese/ebnetd/pkg-install | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/japanese/ebnetd/pkg-install b/japanese/ebnetd/pkg-install index ba2b1d2f7161..1d8e565031ae 100644 --- a/japanese/ebnetd/pkg-install +++ b/japanese/ebnetd/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 |