#!/bin/sh
#
# bye :		This file terminates the term connection and hangs up
#           the modem.
#
# Last modified: 05/01/95
#
# Author: David J. Lennox  < djlennox@mtu.edu >
#
#
#

#
# Send out mail that was mailed while connected.
#

runq

#
# Reset tty and kill all ongoing term processes.
#

reset

#
# Call tshutdown to stop term.
#

tshutdown

echo "" ; echo ""
echo "Terminating Network connections...."
sleep 1

#
# Start Kermit to hangup and reset modem.
#

kermit -y ~/.term/.kermtbye
sleep 1

echo "" ; echo "" ; echo ""
echo "Term shut is now shutdown...."
echo "" ; echo "All Term Connections now closed."
echo "" ; echo "" ; sleep 2 


# Done!
