#!/bin/bash
#
# This script launches the global configuration wizard if nothing was
# configured on the machine

[ -f /etc/sysconfig/mdk_serv ] && exit 0
userid=`/usr/bin/id|sed -e 's/^uid=\([0-9]*\).*$/\1/'`
[ "$userid" = "0" ] || exit 0

touch /etc/sysconfig/mdk_serv

if [ -x /usr/bin/wiz -a -f /usr/share/wizards/global_wizard/global.wiz ]; then
	exec /usr/bin/wiz /usr/share/wizards/global_wizard/global.wiz
elif [ -x /usr/bin/wiz -a -x /usr/bin/wizdrake ]; then
	exec /usr/bin/wizdrake
fi

exit 0
	

