[svn-commits] tzafrir: branch tools/tzafrir/sysfs r8705 - in /tools/team/tzafrir/sysfs: ./ ...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu May 27 09:24:11 CDT 2010


Author: tzafrir
Date: Thu May 27 09:24:10 2010
New Revision: 8705

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=8705
Log:
Add dahdi_waitfor_spans

dahdi_waifor_spans is a script similar to xpp/waitfor_xpds: it
provides a synchronization point. After it completes its execution,
all spans should be ready.

It can be used in e.g. dahdi.init.

Added:
    tools/team/tzafrir/sysfs/dahdi_waitfor_spans   (with props)
Modified:
    tools/team/tzafrir/sysfs/xpp/symlink_span

Added: tools/team/tzafrir/sysfs/dahdi_waitfor_spans
URL: http://svnview.digium.com/svn/dahdi/tools/team/tzafrir/sysfs/dahdi_waitfor_spans?view=auto&rev=8705
==============================================================================
--- tools/team/tzafrir/sysfs/dahdi_waitfor_spans (added)
+++ tools/team/tzafrir/sysfs/dahdi_waitfor_spans Thu May 27 09:24:10 2010
@@ -1,0 +1,14 @@
+#! /bin/sh
+
+echo "Waiting for DAHDI spans to be ready..."
+udevsettle
+for i in 1 2 3
+do
+	if cat -n /sys/bus/dahdi_spans/devices/span-*/wait_for_channels
+	then
+		break
+	else
+		echo 1>&2 "$0: retry ($i)"
+	fi
+done
+udevsettle

Propchange: tools/team/tzafrir/sysfs/dahdi_waitfor_spans
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tools/team/tzafrir/sysfs/dahdi_waitfor_spans
------------------------------------------------------------------------------
    svn:executable = *

Propchange: tools/team/tzafrir/sysfs/dahdi_waitfor_spans
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: tools/team/tzafrir/sysfs/dahdi_waitfor_spans
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: tools/team/tzafrir/sysfs/xpp/symlink_span
URL: http://svnview.digium.com/svn/dahdi/tools/team/tzafrir/sysfs/xpp/symlink_span?view=diff&rev=8705&r1=8704&r2=8705
==============================================================================
--- tools/team/tzafrir/sysfs/xpp/symlink_span (original)
+++ tools/team/tzafrir/sysfs/xpp/symlink_span Thu May 27 09:24:10 2010
@@ -129,6 +129,6 @@
 	remove_links 2>&1 | $LOGGER
 	;;
 online)
-	dahdi_cfg -c "$dahdiconfdir/system.conf" -S "$SPAN_NUM" -k
+	dahdi_cfg -c "$dahdiconfdir/system.conf" -S "$SPAN_NUM" -k 2>&1 | $LOGGER
 	;;
 esac




More information about the svn-commits mailing list