[zaptel-commits] tzafrir: branch 1.2 r2673 - /branches/1.2/zaptel.init

SVN commits to the Zaptel project zaptel-commits at lists.digium.com
Mon Jul 2 09:32:34 CDT 2007


Author: tzafrir
Date: Mon Jul  2 09:32:33 2007
New Revision: 2673

URL: http://svn.digium.com/view/zaptel?view=rev&rev=2673
Log:
When running the optional xpp_startup, run it only when there are
Astribank devices connected.

Modified:
    branches/1.2/zaptel.init

Modified: branches/1.2/zaptel.init
URL: http://svn.digium.com/view/zaptel/branches/1.2/zaptel.init?view=diff&rev=2673&r1=2672&r2=2673
==============================================================================
--- branches/1.2/zaptel.init (original)
+++ branches/1.2/zaptel.init Mon Jul  2 09:32:33 2007
@@ -67,8 +67,8 @@
 # intended to replace all the the three functions below if user has 
 # installed the zaptel-perl utilities.
 xpp_startup() {
-	# do nothing if the module xpp was not loaded
-	if [ ! -d /proc/xpp ]; then return 0; fi
+	# do nothing if there are no astribank devices:
+	if ! grep -q connected /proc/xpp/xbuses 2>/dev/null; then return 0; fi
 
 	echo "Waiting for Astribank devices to initialize:"
 	cat /proc/xpp/XBUS-[0-9]*/waitfor_xpds 2>/dev/null || true




More information about the zaptel-commits mailing list