From 094e03f7b253ebbd2af3181dc86ff4021b546218 Mon Sep 17 00:00:00 2001 From: tzafrir Date: Fri, 22 Aug 2008 13:48:43 +0000 Subject: Fix init scripts loading in xpp from live_zap and update README * Set initdir to the directory on the live system for xpp. * set FIRMWARE_DIR to allow running xpp_fxloader from 'live_zap exec'. * Update README. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4504 5390a7c7-147a-4af0-8ec9-7488f05a26cb --- README | 23 +++++++++++++++++++++++ live_zap | 7 +++++++ 2 files changed, 30 insertions(+) diff --git a/README b/README index b2c2da5..1dd5479 100644 --- a/README +++ b/README @@ -285,6 +285,29 @@ Testing on a different machine: ./live_zap unload ./live_zap load +live_zap also has a command called "exec" to execute commands from the +installed environment. e.g.: + + ./live_zap exec lszaptel + +This sets PATH, PERL5LIB (for the Zaptel-perl modules) and some other +settings. + +For Xorcom Astribank you may need to load a different version of +firmware from that installed on the system. In this case, start with +editing the real system's /etc/default/zaptel (on Debian) or +/etc/sysconfig/zaptel (on RedHat/SUSE) and set: + + XPP_HOTPLUG_DISABLED=yes + +and then run: + + ./live_zap unload + ./live_zap exec ./live/usr/share/zaptel/xpp_fxloader reset + ./live_zap exec ./live/usr/share/zaptel/xpp_fxloader load + # wait a few seconds, see the output of lsusb + ./live_zap load + ./configure Options ^^^^^^^^^^^^^^^^^^^ diff --git a/live_zap b/live_zap index ac18157..3c4d169 100755 --- a/live_zap +++ b/live_zap @@ -30,6 +30,13 @@ export PATH PERL5LIB="$DESTDIR/$PERLLIBDIR" export PERL5LIB +# used in xpp_fxloader: +FIRMWARE_DIR="$DESTDIR/usr/share/zaptel" +export FIRMWARE_DIR + +# make sure Astribank initialization scripts are from our tree. +xpp_ARGS="$xpp_ARGS initdir=$FIRMWARE_DIR" + # the same as xpp/utils/zaptel_drivers . # With the remote mode, I can't rely on files in the source directory. zaptel_drivers() { -- cgit v1.2.3