[Pkg-voip-commits] [dahdi-tools] 211/285: xpp: waitfor_xpds: expansion error with no ABs

tzafrir at debian.org tzafrir at debian.org
Thu Jul 7 19:18:59 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 0eb77e626ef5d71804825d7701432ec6d68c5e6e
Author: Oron Peled <oron.peled at xorcom.com>
Date:   Tue Oct 28 11:53:29 2014 -0400

    xpp: waitfor_xpds: expansion error with no ABs
    
    Fix an exansion error in case there were no Astribanks on the system.
    
    Signed-off-by: Tzafrir Cohen <tzafrir.cohen at xorcom.com>
---
 xpp/waitfor_xpds | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xpp/waitfor_xpds b/xpp/waitfor_xpds
index 79e2806..8a46a1d 100755
--- a/xpp/waitfor_xpds
+++ b/xpp/waitfor_xpds
@@ -52,7 +52,7 @@ ab_serial_nums() {
 }
 
 detected_serial_nums() {
-	for i in /sys/bus/astribanks/devices/*/transport; do
+	for i in `ls -1d /sys/bus/astribanks/devices/*/transport 2>/dev/null`; do
 		s=`cat "$i/serial" 2>/dev/null` || :
 		if [ "$s" = '' ]; then
 			echo "NO-SERIAL"

-- 
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