[svn-commits] kpfleming: branch 1.4 r2480 - /branches/1.4/zaptel.init

svn-commits at lists.digium.com svn-commits at lists.digium.com
Mon Apr 30 16:07:21 MST 2007


Author: kpfleming
Date: Mon Apr 30 18:07:21 2007
New Revision: 2480

URL: http://svn.digium.com/view/zaptel?view=rev&rev=2480
Log:
eliminate bogus warning message during script startup with no HPEC licenses

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=2480&r1=2479&r2=2480
==============================================================================
--- branches/1.4/zaptel.init (original)
+++ branches/1.4/zaptel.init Mon Apr 30 18:07:21 2007
@@ -178,8 +178,15 @@
 
 	[ $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"



More information about the svn-commits mailing list