]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Use the default runlevels for Debian derivatives, instead of making up our own.
authorTilghman Lesher <tilghman@meg.abyt.es>
Tue, 25 Aug 2009 02:40:22 +0000 (02:40 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Tue, 25 Aug 2009 02:40:22 +0000 (02:40 +0000)
(closes issue #14730)
 Reported by: pkempgen

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

Makefile

index 44d029c680018215106d851f6ac89f373775d8ed..39098c4133fe7e39677eea735f1973ac66939026 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -671,7 +671,7 @@ config:
                        if [ -z "$(DESTDIR)" ]; then /sbin/chkconfig --add asterisk; fi; \
                elif [ -f /etc/debian_version ]; then \
                        $(INSTALL) -m 755 contrib/init.d/rc.debian.asterisk $(DESTDIR)/etc/init.d/asterisk; \
-                       if [ -z "$(DESTDIR)" ]; then /usr/sbin/update-rc.d asterisk start 50 2 3 4 5 . stop 91 2 3 4 5 .; fi; \
+                       if [ -z "$(DESTDIR)" ]; then /usr/sbin/update-rc.d asterisk defaults 50 91; fi; \
                elif [ -f /etc/gentoo-release ]; then \
                        $(INSTALL) -m 755 contrib/init.d/rc.gentoo.asterisk $(DESTDIR)/etc/init.d/asterisk; \
                        if [ -z "$(DESTDIR)" ]; then /sbin/rc-update add asterisk default; fi; \