[zaptel-commits] tzafrir: branch tzafrir/sysfs r3496 - /team/tzafrir/sysfs/live_zap
SVN commits to the Zaptel project
zaptel-commits at lists.digium.com
Sun Dec 16 19:59:46 CST 2007
Author: tzafrir
Date: Sun Dec 16 19:59:45 2007
New Revision: 3496
URL: http://svn.digium.com/view/zaptel?view=rev&rev=3496
Log:
* Add 'run' (to run a command in our environment).
* sync improvements from branches/1.4 .
Modified:
team/tzafrir/sysfs/live_zap
Modified: team/tzafrir/sysfs/live_zap
URL: http://svn.digium.com/view/zaptel/team/tzafrir/sysfs/live_zap?view=diff&rev=3496&r1=3495&r2=3496
==============================================================================
--- team/tzafrir/sysfs/live_zap (original)
+++ team/tzafrir/sysfs/live_zap Sun Dec 16 19:59:45 2007
@@ -69,8 +69,10 @@
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"
+ echo "$me run COMMAND (Run COMMAND)"
}
# Give priority to our installed binaries:
@@ -83,12 +85,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
@@ -112,6 +124,10 @@
# doable, but trickier.
$AST_SCRIPT start
;;
+run)
+ shift
+ "$@"
+ ;;
help)
usage
;;
More information about the zaptel-commits
mailing list