[Pkg-voip-commits] [dahdi-tools] 140/285: dahdi.init: Remove spurious "Missing '/sys/bus/astribanks/drivers/xppdrv/sync'".
    tzafrir at debian.org 
    tzafrir at debian.org
       
    Thu Jul  7 19:18:45 UTC 2016
    
    
  
This is an automated email from the git hooks/post-receive script.
tzafrir pushed a commit to branch master
in repository dahdi-tools.
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>
---
 dahdi.init | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
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
 	;;
-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/dahdi-tools.git
    
    
More information about the Pkg-voip-commits
mailing list