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@digium.com>
Acked-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com>
This commit is contained in:
Shaun Ruffell 2013-11-22 15:08:29 -06:00
parent 365a12f42a
commit c27664dc1b

View File

@ -286,8 +286,12 @@ case "$1" in
$FXOTUNE -s || : $FXOTUNE -s || :
fi fi
# 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: # Set the right Astribanks ticker:
LC_ALL=C xpp_sync "$XPP_SYNC" LC_ALL=C xpp_sync "$XPP_SYNC"
fi
hpec_start hpec_start
;; ;;