#!/bin/sh
##############################################################################
# $Id: add_bash,v 1.1 2002/03/21 18:56:04 root Exp $
##############################################################################
# Do the necessary steps to add bash as a recognized shell
##############################################################################
# $Log: add_bash,v $
# Revision 1.1  2002/03/21 18:56:04  root
# Initial revision
#
##############################################################################

echo
echo "Start of $0"
echo '  $Id: add_bash,v 1.1 2002/03/21 18:56:04 root Exp $'

BASE=/a

echo "  Adding bash to list of recognized login shells in /etc/profile"

cp -p $BASE/etc/profile $BASE/etc/profile.orig
sed 's/jsh)/jsh | -bash)/' $BASE/etc/profile > $BASE/etc/profile.new
mv $BASE/etc/profile.new $BASE/etc/profile
chmod 644 $BASE/etc/profile

echo "  Symlinking /bin/bash -> /usr/local/bin/bash"

ln -s /usr/local/bin/bash $BASE/bin/bash

echo "End of $0"

