aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-06-26 17:49:14 +0000
committerqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-06-26 17:49:14 +0000
commitd29f02795e04fa6c4c863b1b83953a20b9eedc46 (patch)
treeb3556b219c1d97480ad034f11835116dece5d3b6
parentd6a4a47e6168602dd35af98246187a7a4d88264d (diff)
Don't try to install an init script that doesn't exist.
Reported to me on #asterisk on Freenode IRC. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@71847 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index bf73255c7..d09a42109 100644
--- a/Makefile
+++ b/Makefile
@@ -864,7 +864,9 @@ config:
$(INSTALL) -m 755 contrib/init.d/rc.redhat.asterisk /etc/rc.d/init.d/asterisk; \
/sbin/chkconfig --add asterisk; \
elif [ -d /etc/init.d ]; then \
- $(INSTALL) -m 755 init.asterisk /etc/init.d/asterisk; \
+ echo "Only distros that use rc.d based init scripts are currently supported."; \
+ echo "You may be able to copy one of the scripts in contrib/init.d/ into your /etc/init.d/ directory."; \
+ exit 1; \
fi
dont-optimize: install