:
: The AOM III installation script
:
if test ! -d /usr/aom
then
	mkdir /usr/aom
fi
echo
echo "Set clock to 24 hour time? (y/n): \c"
read answer
echo
if test $answer = y -o $answer = Y
then
	./setmsg 283 24 ./aom.msgs
fi
:
echo
echo "Moving AOM files ..."
echo
chmod 755 /etc/wall
:
if test ! -d /usr/aom/help
then
	mkdir /usr/aom/help
fi
:
if test ! -d /usr/aom/menu
then
	mkdir /usr/aom/menu
fi
:
mv aom /usr/altos/bin
mv aomlogin /usr/altos/bin

if test ! -f /bin/wtty
then
	ln /bin/tty /bin/wtty
fi

#if test -f /usr/bin/pconfig
#then
#	mv pconfig /usr/bin
#else
#	mv pconfig /bin
#fi

mv AOMcap   /usr/aom
mv aomtext  /usr/aom
mv aomplanes /usr/aom
> /usr/aom/creatext
mv aomnames /usr/aom
mv aom.msgs /usr/aom
mv form.* /usr/aom
mv setmsg defupdate /usr/aom

mv help/* /usr/aom/help
mv menu/* /usr/aom/menu
rm -rf help menu > /dev/null 2>&1
:
rm -f install update > /dev/null 2>&1

PRODUCT='AOM         '
VERSION='3.0s2       '
PWD=`pwd`
TODAY=`date`
> aomw$$
WHOAMI=`ls -l aomw$$ | sed "s/[^ ]* *[^ ]* *\([^ ]*\).*/\1/"`
rm aomw$$
echo "$PRODUCT|$VERSION|$TODAY|$WHOAMI|$PWD\tinstall" >> /etc/install.log
