#!/bin/sh

/etc/ssh/ssh-keygen -b 1024 -f /etc/ssh/ssh_host_key -N ''

echo
echo "Now that you have made your router host key you no longer need"
echo "this script and the ssh-keygen program. You can remove them to"
echo "save space."
echo
echo -n "Delete them now? (N/y)"

read OPT

	case $OPT in
		y | Y)	echo
			echo "rm /etc/ssh/mkhostkey";rm /etc/ssh/mkhostkey
			echo "rm /etc/ssh/ssh-keygen";rm /etc/ssh/ssh-keygen
			break ;;
		* )     echo;echo "Skipping..."
			break ;;
	esac

exit 0
