#!/bin/sh
# Get shell in hasher with apt and mc
# Public domain

. /etc/rpm/etersoft-build-functions
build_list_and_args "$@"
HASHERDIR=$HASHERDIR$MENVARG

if [ -d $HASHERDIR/lockdir ]
then
	echo
	echog "Hasher $HASHERDIR in use at `date`"
	echo -n "Wait for unlocking"
	while test -d $HASHERDIR/lockdir
	do
		echo -n "."
		sleep 3
	done
	echo
fi

hsh-install $HASHERDIR $LISTRPMARGS mc apt
hsh-shell $HASHERDIR
