f64500c986
This was originally done in the init script after all Astribanks were connected. But now there is no single point in the startup sequence where we can guarantee all of them were loaded. Signed-off-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com>
19 lines
256 B
Bash
Executable File
19 lines
256 B
Bash
Executable File
#! /bin/sh
|
|
|
|
# Run xpp_sync whenever an Astribank is connected.
|
|
|
|
# May be set in /etc/dahdi/init.conf
|
|
XPP_SYNC=${XPP_SYNC:-auto}
|
|
|
|
case "$ACTION" in
|
|
add) ;;
|
|
*) exit 0 ;;
|
|
esac
|
|
|
|
case "${DEVPATH##*/}" in
|
|
astribanks:*) ;;
|
|
*) exit 0 ;;
|
|
esac
|
|
|
|
xpp_sync "$XPP_SYNC"
|