From 1311eb6a8a7dc30a7430a543711a0c5a1674437c Mon Sep 17 00:00:00 2001 From: qwell Date: Wed, 12 Dec 2007 21:59:32 +0000 Subject: If these are going to cause the script to exit, we really need to explain why. Issue 10902, patch by snuffy git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3455 5390a7c7-147a-4af0-8ec9-7488f05a26cb --- zaptel.init | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'zaptel.init') diff --git a/zaptel.init b/zaptel.init index e9b6151..022d57d 100644 --- a/zaptel.init +++ b/zaptel.init @@ -140,11 +140,20 @@ shutdown_dynamic() { } # Check that telephony is up. -[ "${TELEPHONY}" = "yes" ] || exit 0 +if [ "${TELEPHONY}" != "yes" ]; then + echo "No TELEPHONY found" + exit 0 +fi -[ -x "$ZTCFG" ] || exit 0 +if [! -x "$ZTCFG" ]; then + echo "ztcfg not executable" + exit 0 +fi -[ -f /etc/zaptel.conf ] || exit 0 +if [! -f /etc/zaptel.conf ]; then + echo "/etc/zaptel.conf not found" + exit 0 +fi if [ "${DEBUG}" = "yes" ]; then ARGS="debug=1" -- cgit v1.2.3