From 4e2493b0040c2a42f612d67e59134b709c82aaa9 Mon Sep 17 00:00:00 2001 From: htgoebel Date: Thu, 20 Jan 2005 18:56:02 +0000 Subject: [PATCH] Test for result of 'capisuite-checkconfig -t' was wrong. Fixed. git-svn-id: https://svn.ibp.de/svn/capisuite/trunk/capisuite@414 4ebea2bb-67d4-0310-8558-a5799e421b66 --- rc.capisuite.in | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/rc.capisuite.in b/rc.capisuite.in index dacb7aa..b08b8ab 100755 --- a/rc.capisuite.in +++ b/rc.capisuite.in @@ -77,17 +77,14 @@ rc_reset case "$1" in start) echo -n "Starting CapiSuite " - configured=yes # Check if there are configured users for fax or # answering machine. Otherwise exit. # IMPORTANT: Change this or comment it out if you want to use # your own CapiSuite scripts. - if [ ! @sbindir@/capisuite-checkconfig -t >/dev/null ] ; then - configured=no - fi - ## Start daemon with startproc(8). If this fails - ## the return value is set appropriately by startproc. - if [ $configured = "yes" ]; then + @sbindir@/capisuite-checkconfig -t > /dev/null 2>&1 + if [ $? -eq 0 ]; then + ## Start daemon with startproc(8). If this fails + ## the return value is set appropriately by startproc. startproc $CAPISUITE_BIN -d else rc_failed 6