[svn-commits] tzafrir: linux/trunk r8347 - /linux/trunk/build_tools/live_dahdi

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Mar 18 07:38:58 CDT 2010


Author: tzafrir
Date: Thu Mar 18 07:38:53 2010
New Revision: 8347

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=8347
Log:
live_dahdi: fixes for rsync mode

* Run programs from live tree rather than tools dir (not copied)
* Calculate MODULES dir after reading config file (you'll still need to
  override it from the command line for building, but not for reload)

Modified:
    linux/trunk/build_tools/live_dahdi

Modified: linux/trunk/build_tools/live_dahdi
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/build_tools/live_dahdi?view=diff&rev=8347&r1=8346&r2=8347
==============================================================================
--- linux/trunk/build_tools/live_dahdi (original)
+++ linux/trunk/build_tools/live_dahdi Thu Mar 18 07:38:53 2010
@@ -4,7 +4,6 @@
 TOOLS_DIR=${TOOLS_DIR:=../dahdi-tools}
 DESTDIR=$PWD/live
 KVERS=${KVERS:-`uname -r`}
-MODULES_DIR="$DESTDIR/lib/modules/$KVERS/dahdi"
 XPP_SYNC=${XPP_SYNC:-auto}
 AST_SCRIPT=${AST_SCRIPT:-/etc/init.d/asterisk}
 # Use this file to pass options to modules:
@@ -22,6 +21,7 @@
 
 if [ -r $DESTDIR/live.conf ]; then . $DESTDIR/live.conf; fi
 
+MODULES_DIR="$DESTDIR/lib/modules/$KVERS/dahdi"
 if [ ! -d "$LINUX_DIR" ]; then
 	echo >&2 "$0:dahdi-linux dir '$LINUX_DIR' does not exits.  Aborting".
 	exit 1
@@ -106,7 +106,7 @@
 	if ! grep -q connected /proc/xpp/xbuses 2>/dev/null; then return 0; fi
 
 	echo "Waiting for Astribank devices to initialize:"
-	$TOOLS_DIR_FULL/xpp/waitfor_xpds # Asusmes a recent dahdi-tools
+	"$FIRMWARE_DIR/waitfor_xpds" # Asusmes a recent dahdi-tools
 	
 	# overriding locales for the above two, as perl can be noisy
 	# when locales are missing.
@@ -235,10 +235,10 @@
 	# Still broken. Needs to be run several times.
 	# set XPP_HOTPLUG_DISABLED=yes in /etc/dahdi/init.conf
 	XPP_FIRMWARE_DIR=$FIRMWARE_DIR \
-		sh "$TOOLS_DIR"/xpp/xpp_fxloader reset
+		"$FIRMWARE_DIR/xpp_fxloader" reset
 	sleep 5
 	XPP_FIRMWARE_DIR=$FIRMWARE_DIR \
-		sh "$TOOLS_DIR"/xpp/xpp_fxloader load
+		"$FIRMWARE_DIR/xpp_fxloader" load
 	;;
 help|'')
 	usage




More information about the svn-commits mailing list