#!/bin/sh

# Centos base installations do not have ksh, bash seems to provide all the
# functionality we require so we create a soft link /bin/ksh to bash.
# Actually sh on Centos and AIX would have been OK but Sun's sh is rubbish.

if [ ! -x /bin/ksh ]
then
    echo "/bin/ksh does not exist, trying /bin/bash."
    echo "Please enter the root password"
    if [ ! -x /bin/bash ] || ! su root -c "ln -s /bin/bash /bin/ksh"
    then
	echo "/bin/ksh does not exist and cannot use /bin/bash instead."
	exit
    fi
fi

# Run the real setup with ksh, or pseudo ksh

./setup2
