[svn-commits] qwell: branch 1.4 r3455 - /branches/1.4/zaptel.init

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Dec 12 15:59:33 CST 2007


Author: qwell
Date: Wed Dec 12 15:59:32 2007
New Revision: 3455

URL: http://svn.digium.com/view/zaptel?view=rev&rev=3455
Log:
If these are going to cause the script to exit, we really need to explain why.

Issue 10902, patch by snuffy

Modified:
    branches/1.4/zaptel.init

Modified: branches/1.4/zaptel.init
URL: http://svn.digium.com/view/zaptel/branches/1.4/zaptel.init?view=diff&rev=3455&r1=3454&r2=3455
==============================================================================
--- branches/1.4/zaptel.init (original)
+++ branches/1.4/zaptel.init Wed Dec 12 15:59:32 2007
@@ -140,11 +140,20 @@
 }
 
 # Check that telephony is up.
-[ "${TELEPHONY}" = "yes" ] || exit 0
-
-[ -x "$ZTCFG" ] || exit 0
-
-[ -f /etc/zaptel.conf ] || exit 0
+if [ "${TELEPHONY}" != "yes" ]; then
+       echo "No TELEPHONY found"
+       exit 0
+fi
+
+if [! -x "$ZTCFG" ]; then
+       echo "ztcfg not executable"
+       exit 0
+fi
+
+if [! -f /etc/zaptel.conf ]; then
+       echo "/etc/zaptel.conf not found"
+       exit 0
+fi
 
 if [ "${DEBUG}" = "yes" ]; then
 	ARGS="debug=1"




More information about the svn-commits mailing list