#!/bin/sh

prefix=/usr
exec_prefix=${prefix}/bin
sysconfdir=/etc/ppc
conffile=ppc.conf

if [ $# -gt 0 ]; then
	${exec_prefix}/ppc.real $@
else
	if [ -f ~/.${conffile} ]; then
		${exec_prefix}/ppc.real ~/.${conffile}
	elif [ -f ${sysconfdir}/${conffile} ]; then
		${exec_prefix}/ppc.real ${sysconfdir}/${conffile}
	else
		echo "ERROR: Config file not found! (/etc/${conffile} or ~/.${conffile})"
		exit 1
	fi
fi
