#!/bin/sh
# Portable System Interface Copyright (c) 1997-1998 Tycho Softworks.
# $Id: rootsudo 1.1 Tue, 23 Jun 1998 11:38:33 -0400 dyfet $

ldir=`dirname $0`
PATH=$PATH:$ldir:/sbin:/usr/sbin

if [ -f /etc/sudo.conf ] ; then
	if test $1 = "make" ; then
		su root -c "$*"
	else
		sudo root $* 
	fi
else
	su root -c "$*"
fi
