# Script by Kras_Kresh@hotmail.com
# Created on the Unix system

cat << EOF

This script was written by Kras_Kresh@hotmail.com so that you may reload
autorun if it was changed without being there to reload it through
"shutdown die" and "./autorun &" simply by "./reloadautorun &" and leaving.
This script will work in conjunction with the timed reboot feature.

MUD must reboot or go down for the script to work.

EOF

echo "touch .killscript"
touch .killscript

echo "Waiting for removal of .killscript by MUD."

while [ -r .killscript ]; do
  sleep 10
done

rm -f .fastboot

echo ".killscript removed.. running autorun and exiting"
./autorun &
exit
