[svn-commits] tzafrir: branch linux/tzafrir/sysfs r5981 - /linux/team/tzafrir/sysfs/drivers...
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Wed Feb 4 19:18:55 CST 2009
Author: tzafrir
Date: Wed Feb 4 19:18:55 2009
New Revision: 5981
URL: http://svn.digium.com/svn-view/dahdi?view=rev&rev=5981
Log:
span_hook.sample: Run fron 'online', not 'add'.
Modified:
linux/team/tzafrir/sysfs/drivers/dahdi/span_hook.sample
Modified: linux/team/tzafrir/sysfs/drivers/dahdi/span_hook.sample
URL: http://svn.digium.com/svn-view/dahdi/linux/team/tzafrir/sysfs/drivers/dahdi/span_hook.sample?view=diff&rev=5981&r1=5980&r2=5981
==============================================================================
--- linux/team/tzafrir/sysfs/drivers/dahdi/span_hook.sample (original)
+++ linux/team/tzafrir/sysfs/drivers/dahdi/span_hook.sample Wed Feb 4 19:18:55 2009
@@ -23,6 +23,10 @@
case "$ACTION" in
add)
+ ;;
+remove)
+ ;;
+online)
span_name=`echo $SPAN_NAME | tr / _`
span_conf=/etc/dahdi/span-$span_name.conf
if [ -r /etc/dahdi/system.conf ]; then
@@ -31,7 +35,7 @@
# TODO: implement pattern matching here to make this case useful
dahdi_cfg -c "$span_conf"
else
- dev_file="/sys/$DEVPATH"
+ dev_file="/sys$DEVPATH"
tmpfile=`mktemp dahdi_span_XXXXXX`
# Generate a temporary configuration file for this span:
@@ -41,10 +45,6 @@
#cat $tmpfile >&2
rm "$tmpfile"
fi
- ;;
-remove)
- ;;
-online)
;;
offline)
;;
More information about the svn-commits
mailing list