Blob Blame Raw
#!/bin/bash

set -e

if [ ! -f $HOME/.xu4/ultima4.zip -o \
     ! -f $HOME/.xu4/u4upgrad.zip ]; then
  if [ -f /usr/lib64/u4/xu4.autodlrc ]; then
    /usr/share/autodl/AutoDL.py /usr/lib64/u4/xu4.autodlrc
  else
    /usr/share/autodl/AutoDL.py /usr/lib/u4/xu4.autodlrc
  fi
fi

cd $HOME/.xu4
exec /usr/bin/u4.bin "$@"