]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Disable color during running test
authorAndrew Latham <lathama@gmail.com>
Wed, 9 Feb 2011 21:48:45 +0000 (21:48 +0000)
committerAndrew Latham <lathama@gmail.com>
Wed, 9 Feb 2011 21:48:45 +0000 (21:48 +0000)
(closes issue #18776)
Reported by: alecdavis
Patches:
     ast_deb_init.diff uploaded by lathama (license 1028)
Tested by: andrel, lathama

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

contrib/init.d/rc.debian.asterisk

index 4d9bb15f15b04172144e4462b8dba8e5aebd3369..88f220bfa6bf2950f28678ebc483b345aa065c4f 100755 (executable)
@@ -72,7 +72,7 @@ case "$1" in
   start)
        # Check if Asterisk is already running.  If it is, then bug out, because
        # starting up Asterisk when Asterisk is already running is very bad.
-       VERSION=`${DAEMON} -rx 'core show version' || ${TRUE}`
+       VERSION=`${DAEMON} -rnx 'core show version' || ${TRUE}`
        if [ "`echo $VERSION | cut -c 1-8`" = "Asterisk" ]; then
                echo "Asterisk is already running.  $0 will exit now."
                exit 1