IMO this is great information, and should be put in the official Bering Reference Manual.
Paul Rogers ([EMAIL PROTECTED]) http://www.xprt.net/~pgrogers/ http://www.angelfire.com/or/paulrogers/ Rogers' Second Law: "Everything you do communicates." (I do not personally endorse any additions after this line. TANSTAAFL :-) On Sun, 08 Jun 2003 15:48:04 -0700 [EMAIL PROTECTED] writes: >Subject: Re: [leaf-user] Edit Bering Config files Offline >From: David M Brooke <[EMAIL PROTECTED]> > >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]> > >--__--__-- > >From: "eric wolzak" <[EMAIL PROTECTED]> >To: "Simon Chalk" <[EMAIL PROTECTED]>, > > ># all steps in one liners ;) >mkdir /temp >mount -t msdos /dev/fd0u1680 /mnt >cp /mnt/etc.lrp /temp >cd /temp >tar -xzf etc.lrp >rm etc.lrp ># can be easier but more dangerous.don't leave etc.lrp in temp, >otherwise it >will be package in the new etc.lrp > >#now edit your files >cd ..... >edit xxxx > >#if ready move back to temp >cd /temp >#tar all your files and the subdirectories to etc.tar >tar -cf etc.tar * ># zip the tar file this will create etc.tar.gz >gzip etc.tar ># rename etc.tar.gz back >mv etc.tar.gz etc.lrp ># check the size for security reasons >ls -l etc.lrp ># and compare with the original and free disk space >ls -l /mnt ># if ok >mv etc.lrp /mnt ># clean up >cd / >rm /temp -rf >umount /mnt ># wait till everything is written back. ># of course you can tar and zip as a one pipe process. > >btw if you can edit etc.lrp from the boot disk, you also can edit the >real >files in etc.lrp ;) >and back them up. > > ________________________________________________________________ The best thing to hit the internet in years - Juno SpeedBand! Surf the web up to FIVE TIMES FASTER! Only $14.95/ month - visit www.juno.com to sign up today! ------------------------------------------------------- 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