#!/bin/sh
# $Id: rc.sh,v 1.5 1998/02/10 22:17:14 nathanw Exp $ 
# Run the installer forever, giving the user interactive shells in between.

# Set the path, mostly for the benefit of the interactive shell
PATH=/srvd/usr/athena/bin:/usr/athena/bin:/bin:/sbin:/usr/bin:/usr/sbin
PATH=${PATH}:/hd/bin:/hd/sbin:/hd/usr/sbin
PATH=${PATH}:/os/bin:/os/sbin:/os/usr/bin:/os/usr/sbin
PATH=${PATH}:/hd/bin/athena:/hd/etc/athena:/hd/usr/athena/bin
PATH=${PATH}:/hd/usr/athena/etc:/srvd/bin/athena:/srvd/etc/athena
PATH=${PATH}:/srvd/usr/athena/etc
export PATH

INSTALLER=/install/do-install; export INSTALLER
trap "echo Abort. Going to single-user shell." 2

while :; do
# Install shell
    if [ -f /tmp/.installer ]; then
	/bin/sh `cat /tmp/.installer`
    else
	/bin/sh $INSTALLER
    fi
# Interactive shell
    /bin/sh
done
