]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Don't try to install an init script that doesn't exist.
authorJason Parker <jparker@digium.com>
Tue, 26 Jun 2007 17:49:14 +0000 (17:49 +0000)
committerJason Parker <jparker@digium.com>
Tue, 26 Jun 2007 17:49:14 +0000 (17:49 +0000)
Reported to me on #asterisk on Freenode IRC.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@71847 65c4cc65-6c06-0410-ace0-fbb531ad65f3

Makefile

index bf73255c7d6b8208cafacf5aca308eb907e48031..d09a42109fc51e7aaa1adc29b4c2ee47d72658a2 100644 (file)
--- 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