[dahdi-commits] dahdi/tools.git branch "master" updated.

SVN commits to the DAHDI project dahdi-commits at lists.digium.com
Thu Mar 2 03:45:55 CST 2017


branch "master" has been updated
       via  f64500c98647a7900e2a1f31a8c417e825adaff3 (commit)
      from  424157834d54e9f25696183b26c657b9169eb75c (commit)

Summary of changes:
 hotplug/handle_device.d/30-xpp-sync |   18 ++++++++++++++++++
 xpp/README.Astribank                |    4 ++--
 2 files changed, 20 insertions(+), 2 deletions(-)
 create mode 100755 hotplug/handle_device.d/30-xpp-sync


- Log -----------------------------------------------------------------
commit f64500c98647a7900e2a1f31a8c417e825adaff3
Author: Tzafrir Cohen <tzafrir.cohen at xorcom.com>
Date:   Wed Feb 22 12:15:22 2017 +0200

    xpp: run xpp_sync when an Astribank is connected
    
    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 at xorcom.com>

diff --git a/hotplug/handle_device.d/30-xpp-sync b/hotplug/handle_device.d/30-xpp-sync
new file mode 100755
index 0000000..005c4b0
--- /dev/null
+++ b/hotplug/handle_device.d/30-xpp-sync
@@ -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"
diff --git a/xpp/README.Astribank b/xpp/README.Astribank
index 2e0001f..e71bcb7 100644
--- a/xpp/README.Astribank
+++ b/xpp/README.Astribank
@@ -1257,8 +1257,8 @@ Astribanks Synchronization Source
 If there is more than one Astribank on the system, all the Astribanks
 keep their clock in sync. Optionally the Astribanks can synchronize
 their clock to the master DAHDI device (in case it is a different DAHDI
-device). Normally you just use the default init.d script or run
-explicitly:
+device). Normally it would be run automatically from the udev hooks
+run on device plug (handle_device), but you can also run it explicitly:
 
   xpp_sync auto
 

-----------------------------------------------------------------------


-- 
dahdi/tools.git



More information about the dahdi-commits mailing list