[dahdi-commits] dahdi/tools.git branch "master" updated.

SVN commits to the DAHDI project dahdi-commits at lists.digium.com
Sun Nov 24 10:06:59 CST 2013


branch "master" has been updated
       via  c27664dc1b3226b24d6f8f741d44e73250d32187 (commit)
      from  365a12f42a133b4a49dedbfe2812c1affb695a0f (commit)

Summary of changes:
 dahdi.init |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)


- Log -----------------------------------------------------------------
commit c27664dc1b3226b24d6f8f741d44e73250d32187
Author: Shaun Ruffell <sruffell at digium.com>
Date:   Fri Nov 22 15:08:29 2013 -0600

    dahdi.init: Remove spurious "Missing '/sys/bus/astribanks/drivers/xppdrv/sync'".
    
    The xpp_sync will fail if there are not any Astribank devices loaded. Check for
    existence of the tools before trying to sync.
    
    Signed-off-by: Shaun Ruffell <sruffell at digium.com>
    Acked-by: Tzafrir Cohen <tzafrir.cohen at xorcom.com>

diff --git a/dahdi.init b/dahdi.init
index c772a92..9949f26 100755
--- a/dahdi.init
+++ b/dahdi.init
@@ -286,8 +286,12 @@ case "$1" in
 		$FXOTUNE -s || :
 	fi
 
-	# Set the right Astribanks ticker:
-	LC_ALL=C xpp_sync "$XPP_SYNC"
+	# Do not try to call xpp_sync if there are no Astribank devices
+	# installed.
+	if test -e /sys/bus/astribanks; then 
+		# Set the right Astribanks ticker:
+		LC_ALL=C xpp_sync "$XPP_SYNC"
+	fi
 
 	hpec_start
 	;;

-----------------------------------------------------------------------


-- 
dahdi/tools.git



More information about the dahdi-commits mailing list