diff options
author | qwell <qwell@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-12-12 21:59:32 +0000 |
---|---|---|
committer | qwell <qwell@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-12-12 21:59:32 +0000 |
commit | 1311eb6a8a7dc30a7430a543711a0c5a1674437c (patch) | |
tree | a109c4e657673643b1a9da29e1ec8c318f75a509 /zaptel.init | |
parent | be89b8ad6487dc4afd782a3c7487a38fbfa68f90 (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.init | 15 |
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" |