From 416ab8a37f1b07dc9f6c0fb3ff1a8ff2036510b5 Mon Sep 17 00:00:00 2001 From: Sebastian Schmelzer Date: Thu, 2 Sep 2010 17:50:49 +0200 Subject: change dir structure --- initramfs/tpm/bin/fetch-sshkeys.sh | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100755 initramfs/tpm/bin/fetch-sshkeys.sh (limited to 'initramfs/tpm/bin/fetch-sshkeys.sh') diff --git a/initramfs/tpm/bin/fetch-sshkeys.sh b/initramfs/tpm/bin/fetch-sshkeys.sh deleted file mode 100755 index c385fd47..00000000 --- a/initramfs/tpm/bin/fetch-sshkeys.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/sh -# - -SHOWMAC="/bin/showmac.sh" -KEYTRG="/root/.ssh" - -# FIXME: remote-host could be determined from kernel-cmdline, should we? -RHOST="132.230.4.180" - -if [ ! -x "$SHOWMAC" ] ; then - echo "Can't find $SHOWMAC, exiting." - exit 1 -fi -MAC_ETH0="$($SHOWMAC eth0)" - -mkdir -p "$KEYTRG" - -PRIVKEY="id_rsa.tpm-${MAC_ETH0}.sealed" - -echo -n "trying to fetch private key (via tftp):" -tftp -r client-config/tpm/$PRIVKEY -l $KEYTRG/id_rsa -g $RHOST -if [ "$?" -gt 0 ] ; then - echo " FAILED!" - echo "ERROR: can't find private key for this MAC-address: $MAC_ETH0." - exit 2 -fi -echo " $PRIVKEY" -chmod 600 $KEYTRG/id_rsa -- cgit v1.2.3-55-g7522