#!/bin/sh
# $NetBSD: script2,v 1.2 2004/03/09 20:06:42 garbled Exp $

if [ -r "/etc/usermgmt.conf" ]; then
	FIRST=`grep 'shell' /etc/usermgmt.conf | awk '{print $2}'`
fi
if [ -n "$FIRST" ]; then
	echo $FIRST
	egrep -v '(^#|^$)' /etc/shells | grep -v "$FIRST"
else
	egrep -v '(^#|^$)' /etc/shells
fi
