#!/bin/sh

functions()
	{
		SELFTMP=$0
		ORIGPWD=`pwd`
		REALPWD=`dirname $0`
		cd "$REALPWD"
		while [ -L "$SELFTMP" ]
			do
				SELFTMP=`readlink "$SELFTMP"`
				cd `dirname "$SELFTMP"`
				REALPWD=`pwd -P`
		done

		cd "$ORIGPWD"

		if [ "$INITIALIZED" != "1" ]
			then
				source $REALPWD/inc/functions.sh
		fi
	}

functions

submitconf()
	{
		good ""
		getconfirm "${BAD}Overwrite current configuration with system.conf values${HILITE}?${NORMAL}" && (
			tool "FILE" "BATCH" "config/system.conf" "modify system c." && good "Configuration submitted" || bad "Configuation submit problem!"
		) || warn "User cancelled"
		return 0
	}

submitconf