#! /bin/sh
export TMPDIR=/target/tmp
export PATH_PREFIX=/target
export LD_LIBRARY_PATH="/target/lib:/target/usr/lib"
EXEC="${0##*/}"
if [ ! -x "/target/usr/sbin/$EXEC" ] ; then
	echo 1>&2 "Sorry you must mount your root and /usr filesystems on /target and /target/usr before running $EXEC"
	exit 1
fi
exec "/target/usr/sbin/$EXEC" "$@"
