#!/bin/sh

# set-shells (source listing 2)
# setup the /etc/shells file

BASE=/a

SHELLS="
/sbin/sh
/bin/sh
/bin/csh
/bin/ksh
/bin/bash
/bin/tcsh
/bin/zsh
/usr/bin/sh
/usr/bin/csh
/usr/bin/ksh
/usr/bin/bash
/usr/bin/tcsh
/usr/bin/zsh
"

if [ ! -f $BASE/etc/shells ]; then
	echo "Setting up the /etc/shells file"
	touch $BASE/etc/shells
	for shell in $SHELLS
	do
		if [ -x $BASE/$shell ]; then
			echo $shell >> $BASE/etc/shells
		fi
	done
fi
