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>remotes/origin/HEAD
parent
424157834d
commit
f64500c986
@ -0,0 +1,18 @@
|
||||
#! /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"
|
Loading…
Reference in new issue