summaryrefslogtreecommitdiff
path: root/zaptel.init
diff options
context:
space:
mode:
authorqwell <qwell@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-12-12 21:59:32 +0000
committerqwell <qwell@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-12-12 21:59:32 +0000
commit1311eb6a8a7dc30a7430a543711a0c5a1674437c (patch)
treea109c4e657673643b1a9da29e1ec8c318f75a509 /zaptel.init
parentbe89b8ad6487dc4afd782a3c7487a38fbfa68f90 (diff)
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
Diffstat (limited to 'zaptel.init')
-rw-r--r--zaptel.init15
1 files changed, 12 insertions, 3 deletions
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"