summaryrefslogtreecommitdiff
path: root/japanese/ebnetd/pkg-install
diff options
context:
space:
mode:
Diffstat (limited to 'japanese/ebnetd/pkg-install')
-rw-r--r--japanese/ebnetd/pkg-install16
1 files changed, 12 insertions, 4 deletions
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