On Sun, 2003-06-08 at 17:21, Simon Chalk wrote:
> Is it possible to edit an lrp package on a Bering floppy on another machine.
> 
> I have a problem on one machine where incorrect configuration has stopped
> access to the console. So I am unable to use LRCFG, since no console access
> is possible.
> 
> Dumb I know!
> 
> Regards,
> 
> Simon.
> 

It may not be obvious from the name, but an LRP package file is just a
regular gzip'ed tar file, which you can unpack into a directory
structure and edit before re-creating the LRP package file.

If your other machine is running Linux, you can mount the disk as user
'root' under a temporary directory (e.g. /mnt/tmp - create this if it
doesn't already exist) using a command like "mount -t msdos
/dev/fd0u1680 /mnt/tmp"

You can then unpack the contents of e.g. etc.lrp with a command like
"tar -zxvf /mnt/tmp/etc.lrp" which will create a new directory "etc" in
the current directory containing the contents of the Bering /etc
directory.

Re-creating the LRP file once you've made the changes is mostly just the
reverse of the above (e.g. "tar -zcvf /mnt/tmp/etc.lrp  etc"). I seem to
recall that the maximum possible compression is used for LRP files to
make as much as possible fit onto a floppy disk, but presumably if you
don't do that it will get corrected next time you write the file from
LRCFG. Don't forget to "umount /mnt/tmp" before ejecting the disk.

If your other machine is running Windows then I think it's possible to
use WinZip to read .tar.gz files, but you may have to rename them as
such first. I'm not sure if WinZip can create a .tar.gz file though.


-- 
David M Brooke <[EMAIL PROTECTED]>



-------------------------------------------------------
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
------------------------------------------------------------------------
leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html

Reply via email to