#!/bin/sh
#
# Starts the real reauth
#

cat <<EOFmessage

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

  To get refresh Kerberos5 and AFS credentials, please use 
  'k5reauth'.

  Will sleep for 30 seconds now...

EOFmessage

sleep 30

for n in /afs/usr/local/etc/reauth /afs/usr/local/bin/reauth \
         /afs/cern.ch/system/common/usr/local/etc/reauth \
         /afs/cern.ch/system/common/usr/local/bin/reauth; do
             [ -x $n ] && exec $n ${1+"$@"} 
             [ -x ${n}.pl ] && exec ${n}.pl ${1+"$@"}
done
