##### postinstall: Copyright (c) 1999 by "WahleeWhirl Corporation"
#####
##### ident	"@(#)postinstall	1.0	1999/10/23 WWC"
##### ident	"@(#)postinstall.WUFtpd260	1.0	1999/10/23 WWC"
#####
##### postinstall: Program For Package Installation of "WUFtpd260" Only
##### Author     : Auteria "Wally" Winzer Jr.
##### Date & Time: Sat Oct 23 23:21:20 PDT 1999

########################################
# Set Script Variables and export Them #
########################################
if [ -x /usr/local/bin/gecho ]; then
	ECHO=/usr/local/bin/gecho; export ECHO
else
	ECHO=/usr/bin/echo; export ECHO
fi
if [ -x /usr/local/bin/gsleep ]; then
	WAIT="/usr/local/bin/gsleep 20"; export WAIT
	PAUSE="/usr/local/bin/gsleep 8"; export PAUSE
else
	WAIT="/usr/bin/sleep 26"; export WAIT
	PAUSE="/usr/bin/sleep 8"; export PAUSE
fi

FILE=/usr/local/wu-ftpd-2.6.0/HOW_TO_SETUP_AN_FTP_SERVER; export FILE
BYE="exit 0"; export BYE

############################
# Start postinstall script #
############################
$ECHO ""
$ECHO "VERY IMPORTANT NOTE:"
$ECHO "In order to setup a \"SECURE ANONYMOUS FTP SERVER\" you must read the"
$ECHO "\"$FILE\"."
$ECHO "This file will give you step by step instructions on configuring and"
$ECHO "setting up a Secure Anonymous FTP Server using WUARCHIVE-ftp (wu-ftpd)."
$PAUSE
$ECHO ""
$ECHO "NOTE: You can run in.ftpd as a stand-alone daemon by adding the \"-S\""
$ECHO "option.  An rc script is provided with this distribution.  The rc script"
$ECHO "filename is \"/etc/init.d/wu-ftpd\".  To execute the script type at the"
$ECHO "command prompt as root \"/etc/init.d/wu-ftpd start\".  To shutdown the"
$ECHO "wu-ftpd daemon type \"/etc/init.d/wu-ftpd stop\".  Before you use the"
$ECHO "stand-alone daemon you must put a \"#\" in front of the \"ftpd\" line"
$ECHO "within the \"/etc/inetd.conf\" file.  Send a SIGHUP to inetd in order"
$ECHO "for inetd to re-read its configuration file.  These instructions can be"
$ECHO "read also within the \"$FILE\"."
$WAIT
$BYE
