#!/bin/sh
if [ -r usr/sbin/in.telnetd ]; then
  mv usr/sbin/in.telnetd tmp/in.telnetd-with-security-hole
fi
mv usr/sbin/in.telnetd-patched usr/sbin/in.telnetd
if [ -x /bin/mail ]; then
cat << EOF | /bin/mail -s "telnetd patched" root@localhost

Your current version of /usr/sbin/in.telnetd has been replaced by one which
is believed to be secure.  Your old in.telnetd daemon has been renamed to 
in.telnetd-with-security-hole and placed in your /tmp directory.  Note that
any current telnet sessions to your machine are still using the old version
in /tmp -- if this concerns you, reboot the machine or make the users disconnect
and reconnect through some other means.

Source code for this version may be obtained on
ftp.cdrom.com:/pub/linux/slackware/source/n/tcpip/libtelnet.tar.gz and
ftp.cdrom.com:/pub/linux/slackware/source/n/tcpip/telnetd.tar.gz.

EOF
fi
cat << EOF 

Your current version of /usr/sbin/in.telnetd has been replaced by one which
is believed to be secure.  Your old in.telnetd daemon has been renamed to 
in.telnetd-with-security-hole and placed in your /tmp directory.  Note that
any current telnet sessions to your machine are still using the old version
in /tmp -- if this concerns you, reboot the machine or make the users disconnect
and reconnect through some other means.

Source code for this version may be obtained on
ftp.cdrom.com:/pub/linux/slackware/source/n/tcpip/libtelnet.tar.gz and
ftp.cdrom.com:/pub/linux/slackware/source/n/tcpip/telnetd.tar.gz.

If mail is installed on this machine, a copy of this notice has been mailed
to root@localhost.

EOF
