[svn-commits] tzafrir: branch 1.4 r3466 - in /branches/1.4: README live_zap
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Thu Dec 13 12:54:29 CST 2007
Author: tzafrir
Date: Thu Dec 13 12:54:29 2007
New Revision: 3466
URL: http://svn.digium.com/view/zaptel?view=rev&rev=3466
Log:
Using live_zap now to crash^debug zaptel on other computers.
Modified:
branches/1.4/README
branches/1.4/live_zap
Modified: branches/1.4/README
URL: http://svn.digium.com/view/zaptel/branches/1.4/README?view=diff&rev=3466&r1=3465&r2=3466
==============================================================================
--- branches/1.4/README (original)
+++ branches/1.4/README Thu Dec 13 12:54:29 2007
@@ -239,26 +239,39 @@
make install DESTDIR=$PWD/target DYNFS=
-Test Install: live_ast
+Test Install: live_zap
^^^^^^^^^^^^^^^^^^^^^^
If you need to test a version of Zaptel without touching the version
installed on your system, you can use the script live_zap . Note,
however, that it may take some extra configuration to be used right.
-Basica usage:
+Basic usage:
./configure
make
- ./live_ast install # instead of 'make install'
- ./live_ast config # instead of 'make config'
- ./live_ast unload # instead of '/etc/init.d/zaptel stop'
- ./live_ast load # instead of '/etc/init.d/zaptel start'
+ ./live_zap install # instead of 'make install'
+ ./live_zap config # instead of 'make config'
+ ./live_zap unload # instead of '/etc/init.d/zaptel stop'
+ ./live_zap load # instead of '/etc/init.d/zaptel start'
Everything is installed under the subdirectory live/ . You will probably
need to adjust MODULES . Generally you should not edit the script
itself, but , rather, edit live/live.conf . Please let me know if you
needed to change anything in the script beyond changing live.conf so I
can include useful fixes.
+
+Testing on a different maching:
+
+ ./configure
+ make
+ ./live_zap install # instead of 'make install'
+ ./live_zap config # instead of 'make config'
+ ./live_zap rsync root at remotehost
+ ssh root at remotehost
+ # in the remote host:
+ cd /tmp
+ ./live_zap unload
+ ./live_zap load
./configure Options
Modified: branches/1.4/live_zap
URL: http://svn.digium.com/view/zaptel/branches/1.4/live_zap?view=diff&rev=3466&r1=3465&r2=3466
==============================================================================
--- branches/1.4/live_zap (original)
+++ branches/1.4/live_zap Thu Dec 13 12:54:29 2007
@@ -68,6 +68,7 @@
echo "Usage: equivalent of:"
echo "$me install make install"
echo "$me config make config"
+ echo "$me rsync TARGET (copies file to /tmp/live in TARGET)"
echo "$me unload /etc/init.d/zaptel stop"
echo "$me load /etc/init.d/zaptel start"
}
@@ -82,12 +83,22 @@
case "$1" in
install)
- make install DESTDIR=$DESTDIR
+ shift
+ make install DESTDIR=$DESTDIR DYNFS=yes "$@"
;;
config)
- make config DESTDIR=$DESTDIR
+ shift
+ make config DESTDIR=$DESTDIR "$@"
touch $MODPROBE_FILE
mkdir -p $DESTDIR/etc/asterisk
+ ;;
+rsync)
+ if [ $# -ne 2 ]; then
+ echo >&2 "$0: Error: rsync requires a target parameter".
+ fi
+ # copy the script itself and the installed directory to the
+ # target host:
+ rsync -ai "$0" $DESTDIR "$2:/tmp/"
;;
unload)
$AST_SCRIPT stop
More information about the svn-commits
mailing list