#!/bin/sh

. /targets/links/scratchbox.config

if [ x$SBOX_TARGET_DIR = x$1 ]
then
	shift
	$@
	exit 0
else
	exec /scratchbox/tools/bin/chroot.bin $@
fi
