#!/bin/sh
apt-key add /pub/linux/distributions/local/Gpgkey/key
#arch=`uname -m`
#if [ "$arch" = i686 ];then
# /ftp/beta/gnu/deb/getinst |sort -u >/tmp/debinst
#else
# /ftp/beta/gnu/deb/getinst64 |sort -u >/tmp/debinst
#fi
dpkg -l >/tmp/debinst
scp -p /tmp/debinst root@pimple.mc.man.ac.uk:/tmp/`hostname -f`
rm -f /tmp/debinst
h=`hostname -s`
for i in pvdisplay vgdisplay lvdisplay;do if [ -x /sbin/$i ];then
/sbin/$i >/tmp/$h.$i
scp -p /tmp/$h.$i root@pimple.mc.man.ac.uk:/tmp
rm -f /tmp/$h.$i;fi;done
