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
This commit is contained in:
parent
193c95268c
commit
4e2493b004
|
@ -77,17 +77,14 @@ rc_reset
|
||||||
case "$1" in
|
case "$1" in
|
||||||
start)
|
start)
|
||||||
echo -n "Starting CapiSuite "
|
echo -n "Starting CapiSuite "
|
||||||
configured=yes
|
|
||||||
# Check if there are configured users for fax or
|
# Check if there are configured users for fax or
|
||||||
# answering machine. Otherwise exit.
|
# answering machine. Otherwise exit.
|
||||||
# IMPORTANT: Change this or comment it out if you want to use
|
# IMPORTANT: Change this or comment it out if you want to use
|
||||||
# your own CapiSuite scripts.
|
# your own CapiSuite scripts.
|
||||||
if [ ! @sbindir@/capisuite-checkconfig -t >/dev/null ] ; then
|
@sbindir@/capisuite-checkconfig -t > /dev/null 2>&1
|
||||||
configured=no
|
if [ $? -eq 0 ]; then
|
||||||
fi
|
## Start daemon with startproc(8). If this fails
|
||||||
## Start daemon with startproc(8). If this fails
|
## the return value is set appropriately by startproc.
|
||||||
## the return value is set appropriately by startproc.
|
|
||||||
if [ $configured = "yes" ]; then
|
|
||||||
startproc $CAPISUITE_BIN -d
|
startproc $CAPISUITE_BIN -d
|
||||||
else
|
else
|
||||||
rc_failed 6
|
rc_failed 6
|
||||||
|
|
Loading…
Reference in New Issue