[dahdi-commits] tzafrir: linux/trunk r7179 - /linux/trunk/build_tools/live_dahdi

SVN commits to the DAHDI project dahdi-commits at lists.digium.com
Mon Sep 21 14:47:04 CDT 2009


Author: tzafrir
Date: Mon Sep 21 14:47:01 2009
New Revision: 7179

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=7179
Log:
live_dahdi: more overridble variable; align usage message

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=7179&r1=7178&r2=7179
==============================================================================
--- linux/trunk/build_tools/live_dahdi (original)
+++ linux/trunk/build_tools/live_dahdi Mon Sep 21 14:47:01 2009
@@ -5,20 +5,20 @@
 DESTDIR=$PWD/live
 KVERS=${KVERS:-`uname -r`}
 MODULES_DIR="$DESTDIR/lib/modules/$KVERS/dahdi"
-XPP_SYNC=auto
-AST_SCRIPT=/etc/init.d/asterisk
+XPP_SYNC=${XPP_SYNC:-auto}
+AST_SCRIPT=${AST_SCRIPT:-/etc/init.d/asterisk}
 # Use this file to pass options to modules:
 PERLLIBDIR=`perl -V:sitelib | cut -d "'" -f 2`
 
 # Manual list of modules. They will be loaded by insmod.
 # If reside in a subdir, add it explicitly.
 
-MODULES_LOAD="dahdi dahdi_echocan_mg2"
+MODULES_LOAD="${MODULES_LOAD:-dahdi dahdi_echocan_mg2}"
 
 # this one *is* resolved recusively. 
 # the only reason to set a different value is if you use hpec / oslec,
 # as Zaptel depends on them.
-REMOVE_MODULES="dahdi" # "dahdi oslec"?
+REMOVE_MODULES="${REMOVE_MODULES:-dahdi}" # "dahdi oslec"?
 
 if [ -r $DESTDIR/live.conf ]; then . $DESTDIR/live.conf; fi
 
@@ -146,13 +146,13 @@
 	echo "$me: Run DAHDI in a test environment"
 	echo 'Version: $Id$'
 	echo ''
-	echo "Usage:           equivalent of:"
-	echo "$me configure  ./configure"
-	echo "$me install    make install"
-	echo "$me config     make config"
-	echo "$me unload     /etc/init.d/dahdi stop"
-	echo "$me load       /etc/init.d/dahdi start"
-	echo "$me reload     /etc/init.d/dahdi restart"
+	echo "Usage:                    equivalent of:"
+	echo "$me configure      ./configure"
+	echo "$me install        make install"
+	echo "$me config         make config"
+	echo "$me unload         /etc/init.d/dahdi stop"
+	echo "$me load           /etc/init.d/dahdi start"
+	echo "$me reload         /etc/init.d/dahdi restart"
 	echo "$me xpp-firm       (Reset and load xpp firmware)"
 	echo "$me rsync TARGET   (copy filea to /tmp/live in host TARGET)"
 	echo "$me exec  COMMAND  (Run COMMAND in 'live' environment)"




More information about the dahdi-commits mailing list