#!/bin/sh
#
# Start an interactiver shell in the middle of installation.
# Used for debugging purposes mostly
#

TTY=/dev/`ps -eflo pid,tty | grep $$ | awk '{print $2}'`
exec <$TTY >$TTY 2>&1
echo
/usr/proc/bin/ptree $$ | tail -7
echo
echo "\n\n\n$*\n\n\t\t\tStarting interactive Shell for debugging\n\n"
echo
/sbin/sh
