#!/bin/sh

echo 12345678 Type an eight character password 1>&2
read p1
case "$p1" in
?????????*)	p1=`echo "$p1" | sed 's/\(........\).*/\1/'`;;
????????)	: ;;
*)	echo Password should be eight characters 1>&2; echo "" 1>&2; exit 1;;
esac

echo 12345678 Type another eight character password 1>&2
read p2
case "$p2" in
?????????*)	p2=`echo "$p2" | sed 's/\(........\).*/\1/'`;;
????????)	: ;;
*)	echo Password should be eight characters 1>&2; echo "" 1>&2; exit 1;;
esac

cat << EOF
65535 A $p1
65534 A $p2
EOF
