#!/bin/sh


foo=`whoami`

if [ "$foo" != "root" ] ; then
	echo "Please use ROOT to install this package."
	exit 1
fi

echo "Installing chroot-prepare..."
cp chroot-prepare /usr/local/bin/

echo "Installing chroot-shell..."
cp chroot-shell /usr/local/bin/
chmod 4755 /usr/local/bin/chroot-shell

echo ""
echo "Now, change /etc/shells to include /usr/local/bin/chroot-shell"
echo ""
echo "Next, login as chroot user and run chroot-prepare on the home directory."
echo ""
echo "Then set the 'login shell' with 'chsh' to /usr/local/bin/chroot-shell"
echo "Then further logins with that account will use chroot-shell."
