#ident	"@(#)sadmin:admin/menu/softwaremgmt/listpkg	35.1"
#menu# list packages already installed
#help#
#help#	This subcommand shows you a list of currently installed optional
#help#	software packages.

unset c
if [ -d /usr/options ]
then
	cd /usr/options
	c=`/bin/ls 2>/dev/null | grep -v "\."`
	if [ -n "${c}" ]
	then
		echo '\n\tThe following software packages have been installed:'
		for i in ${c}
		do
			echo "${i}\t`sed -n '2,3p' < ${i} | tr '\012' '\011'`"
		done
	fi
fi
if [ -z "${c}" ]
then
	echo '\n\tNo software packages have been installed.'
fi
echo ''
