summaryrefslogtreecommitdiff
path: root/build_tools
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2010-11-15 14:56:32 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2010-11-15 14:56:32 +0000
commite23b5d59a786a9ca7894c39a4851037128ad51bb (patch)
tree8ef8f23e1535a76c0380f3c6ff6a744b133cc09d /build_tools
parent7e8dea632fd72cce30b9ed0875ffe7bd476fe6f8 (diff)
live_dahdi: rsync to /tmp/dahdi
* Change the destination of rsync to /tmp/dahdi * Add variable LIVE_DAHDI_RSYNC_DIR to allow overriding this. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9480 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'build_tools')
-rwxr-xr-xbuild_tools/live_dahdi3
1 files changed, 2 insertions, 1 deletions
diff --git a/build_tools/live_dahdi b/build_tools/live_dahdi
index 4a9f20a..0e15a6b 100755
--- a/build_tools/live_dahdi
+++ b/build_tools/live_dahdi
@@ -4,6 +4,7 @@ LINUX_DIR=${LINUX_DIR:=.}
TOOLS_DIR=${TOOLS_DIR:=../dahdi-tools}
DYNAMIC_LOC="${DYNAMIC_LOC:-no}"
DESTDIR=$PWD/live
+LIVE_DAHDI_RSYNC_DIR=${LIVE_DAHDI_RSYNC_DIR:-/tmp/dahdi}
KVERS=${KVERS:-`uname -r`}
XPP_SYNC=${XPP_SYNC:-auto}
AST_SCRIPT=${AST_SCRIPT:-/etc/init.d/asterisk}
@@ -258,7 +259,7 @@ rsync)
fi
# copy the script itself and the installed directory to the
# target host:
- rsync -ai "$0" $DESTDIR "$2:/tmp/"
+ rsync -ai "$0" $DESTDIR "$2:$LIVE_DAHDI_RSYNC_DIR"
;;
unload)
# OK for Asterisk not to be running. TODO: a better test?