[svn-commits] tzafrir: linux/trunk r6312 - /linux/trunk/drivers/dahdi/xpp/
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Thu Apr 2 15:34:37 CDT 2009
Author: tzafrir
Date: Thu Apr 2 15:34:34 2009
New Revision: 6312
URL: http://svn.digium.com/svn-view/dahdi?view=rev&rev=6312
Log:
Update the sample udev astribank_hook for TwinStar
Modified:
linux/trunk/drivers/dahdi/xpp/astribank_hook.sample
Modified: linux/trunk/drivers/dahdi/xpp/astribank_hook.sample
URL: http://svn.digium.com/svn-view/dahdi/linux/trunk/drivers/dahdi/xpp/astribank_hook.sample?view=diff&rev=6312&r1=6311&r2=6312
==============================================================================
--- linux/trunk/drivers/dahdi/xpp/astribank_hook.sample (original)
+++ linux/trunk/drivers/dahdi/xpp/astribank_hook.sample Thu Apr 2 15:34:34 2009
@@ -1,7 +1,17 @@
#! /bin/sh
me=`basename $0`
+dir=`dirname $0`
LOGGER="logger -i -t '$me'"
+
+# Always redirect stderr somewhere, otherwise the shell script will die
+# when it tries to do I/O related stuff on closed file descriptor.
+# Our default is to throw it down the bit-bucket.
+#exec 2> /dev/console
+## If you wish to trace this script:
+#exec 2> "/tmp/${me}_$XBUS_NAME" 1>&2
+
+PATH="$dir:/usr/sbin:/sbin:/usr/bin:/bin"
set -e
@@ -13,8 +23,14 @@
remove)
;;
online)
+ if [ -x "$dir/twinstar_hook" ]; then
+ "$dir/twinstar_hook"
+ fi
;;
offline)
+ if [ -x "$dir/twinstar_hook" ]; then
+ "$dir/twinstar_hook"
+ fi
;;
*)
echo "$0: Unknown ACTION='$ACTION'" | $LOGGER
More information about the svn-commits
mailing list