[zaptel-commits] tzafrir: branch 1.4 r4504 - in /branches/1.4: README live_zap

SVN commits to the Zaptel project zaptel-commits at lists.digium.com
Fri Aug 22 08:48:44 CDT 2008


Author: tzafrir
Date: Fri Aug 22 08:48:43 2008
New Revision: 4504

URL: http://svn.digium.com/view/zaptel?view=rev&rev=4504
Log:
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.

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=4504&r1=4503&r2=4504
==============================================================================
--- branches/1.4/README (original)
+++ branches/1.4/README Fri Aug 22 08:48:43 2008
@@ -283,6 +283,29 @@
   # in the remote host:
   cd /tmp
   ./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
 
 

Modified: branches/1.4/live_zap
URL: http://svn.digium.com/view/zaptel/branches/1.4/live_zap?view=diff&rev=4504&r1=4503&r2=4504
==============================================================================
--- branches/1.4/live_zap (original)
+++ branches/1.4/live_zap Fri Aug 22 08:48:43 2008
@@ -29,6 +29,13 @@
 # TODO: If you already use PERL5DIR, please fix this part:
 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.




More information about the zaptel-commits mailing list