#!/usr/bin/pagsh.krb
#
# File: ksu
# Date: 16-Oct-95
# Author: Francisco Lozano - CERN
#

cat <<EOFmessage

  The use of 'ksu' is deprecated and the tool will be removed 
  in an upcoming release of the afs_tools package. 

  Will sleep for 30 seconds now...

EOFmessage

sleep 30

/usr/bin/klog.krb $* || exit
${SHELL:-/bin/sh}

# Removes the TGT file and performs an unlog
if [ ${KRBTKFILE:=""} != "" ]; then
        rm -f $KRBTKFILE
fi

for n in /usr/sue/bin/unlog /usr/bin/unlog /usr/local/bin/unlog /usr/afsws/bin/unlog; do
    [ -x $n ] && $n
done
