diff options
author | kpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-04-30 23:07:21 +0000 |
---|---|---|
committer | kpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-04-30 23:07:21 +0000 |
commit | 71b79406b4d4fe71a9f47cd7cd72f911c0e25874 (patch) | |
tree | 64559d2d5a1d2336973796eda8f10dfaedf43830 /zaptel.init | |
parent | 507a085a24b4f58585b632b17117cbe6451754f7 (diff) |
eliminate bogus warning message during script startup with no HPEC licenses
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@2480 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'zaptel.init')
-rw-r--r-- | zaptel.init | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/zaptel.init b/zaptel.init index 4e42412..14f6e47 100644 --- a/zaptel.init +++ b/zaptel.init @@ -178,8 +178,15 @@ case "$1" in [ $RETVAL -eq 0 ] && touch $LOCKFILE + # check for HPEC licenses + for f in /var/lib/digium/licenses/HPEC*.lic; do + if [ -f ${f} ]; then + haveHPEC = 1 + fi + done + # HPEC license found - if [ x`find /var/lib/digium/licenses/ -maxdepth 1 -name HPEC-\*.lic -printf yes -quit` = xyes ]; then + if [ -n "${haveHPEC}" ]; then # zaphpec_enable not installed in /usr/sbin if [ ! -f /usr/sbin/zaphpec_enable ]; then echo -n "Running zaphpec_enable: Failed" |