From 90f493a0bd374a7c82e11a9b1972aee026259b9d Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Mon, 21 Sep 2009 19:47:01 +0000 Subject: live_dahdi: more overridble variable; align usage message git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7179 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- build_tools/live_dahdi | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'build_tools') diff --git a/build_tools/live_dahdi b/build_tools/live_dahdi index 2445944..016f092 100755 --- a/build_tools/live_dahdi +++ b/build_tools/live_dahdi @@ -5,20 +5,20 @@ TOOLS_DIR=${TOOLS_DIR:=../dahdi-tools} 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 @@ usage() { 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)" -- cgit v1.2.3