From c27664dc1b3226b24d6f8f741d44e73250d32187 Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Fri, 22 Nov 2013 15:08:29 -0600 Subject: [PATCH] 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 Acked-by: Tzafrir Cohen --- 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 ;;