#!/bin/sh
#
# Shell-script to ANTI bootstrap a cell
#

# shell stuff

version="$Id: anti-boot-strap.sh.in,v 1.2 1999/11/03 05:57:53 lha Exp $"
usage="NOT USE IF YOU DONT KNOW _=*KNOW*=_ WHAT YOU ARE DOING"

PATH=/bin:/sbin:/usr/bin:/usr/sbin:$PATH

real_useage="$0 magic4711 /partN sysconfdir"


if test $# -ne 3; then
    echo $usage ; exit 1;
fi

if test $1 != "magic4711"; then
    echo $usage ; exit 1;
fi


if [ ! -d $2 ] ; then
    echo $usage ; exit 1;
fi

if [ ! -d $3 ] ; then
    echo $usage ; exit 1;
fi

###

echo -n "Trying to cleanup..."

for a in $2/*; do
    rm -rf $a
done

rm -f $3/pr_database
rm -f $3/vl_database
rm -f $3/srvtab
rm -f $3/srvtab.old

echo "done."

exit 0;