On Tue, Jul 23, 2002 at 12:46:02AM -0700, Stephen Lee wrote: >On Mon, 2002-07-22 at 13:50, Darren Hammond wrote: >> I've just unpacked the one from the link below. sshd.version contains 3.2.3p1, >> so you might want to try installing it again. What version is the sshkey.lrp >> you used to generate your key? >> >Here's the strange part. I installed 3.2.3p1 sshd and sshkey from >Jacques site and yet lrpkg -l indicates 3.2.2p1 is loaded but "sshd -V" >says version 3.2.3p1 is running. Unpacked sshd.lrp on a Redhat server >indicates version 3.2.3p1 but on the Bering1.0rc2 box, >/var/lib/lrpkg/sshd.version says it is 3.2.2p1. What's clobbering the >sshd.version file?
Clobbering might be the perfect word -- I've packaged two packages together before while editing them... This script will extract all the packages in your image, each in their own directory, within a 'super root' directory called lrp-super. You can then check for duplicate files across packages. Modules to check for duplicates (good idea), repackage (an entire image or just a package) and other components are planned. // George #!/bin/sh # extimg : script to extent packages from an http://leaf-project.org/ image # By George Georgalis <[EMAIL PROTECTED]> Fri Jul 19 16:37:21 EDT 2002 # under GNU Public License with code contributed by # David Douthitt <[EMAIL PROTECTED]> # Jeff Newmiller <[EMAIL PROTECTED]> [ -z $1 ] && echo 'Supply image file to mount and extract' && exit [ -z '`du $1 | egrep "(1688|1722)"`' ] && \ echo 'Supply image file to mount and extract' && exit s=`date +%s` mnt='lrp-mnt-'$s mkdir $mnt super='lrp-super-'$s mkdir $super mount -oloop $1 $mnt pkgs=`grep PKGPATH $mnt/syslinux.cfg \ | tr ' ' '\n' | grep LRP | sed -e 's/LRP=//' | tr ',' ' '` cd $super for pkg in $pkgs ; do mkdir $pkg cd $pkg tar xzf ../../$mnt/$pkg.lrp cd ../ done cd .. cp -a $mnt/*[^.lrp] $super rm -rf lrp-super mv $super lrp-super umount $mnt ; rm -rf $mnt exit 0 -- GEORGE GEORGALIS, System Admin/Architect cell: 347-451-8229 Security Services, Web, Mail, mailto:[EMAIL PROTECTED] File, Print, DB and DNS Servers. http://www.galis.org/george ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ------------------------------------------------------------------------ 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
