#!/bin/sh
INSTDIR="$1"

if [ ! -e "$INSTDIR/keys/cccamd.list.mgcamd" ]; then
	echo "remove ipk cccamd.list"
	rm "$INSTDIR/keys/cccamd.list"
fi

if [ ! -e "$INSTDIR/keys/ignore.list.mgcamd" ]; then
	echo "remove ipk ignore.list"
	rm "$INSTDIR/keys/ignore.list"
fi

if [ ! -e "$INSTDIR/keys/mg_cfg.mgcamd" ]; then
	echo "remove ipk mg_cfg"
	rm "$INSTDIR/keys/mg_cfg"
fi

if [ ! -e "$INSTDIR/keys/newcamd.list.mgcamd" ]; then
	echo "remove ipk newcamd.list"
	rm "$INSTDIR/keys/newcamd.list"
fi

if [ ! -e "$INSTDIR/keys/peer.cfg.mgcamd" ]; then
	echo "remove ipk peer.cfg"
	rm "$INSTDIR/keys/peer.cfg"
fi

if [ ! -e "$INSTDIR/keys/priority.list.mgcamd" ]; then
	echo "remove ipk priority.list"
	rm "$INSTDIR/keys/priority.list"
fi

if [ ! -e "$INSTDIR/keys/replace.list.mgcamd" ]; then
	echo "remove ipk replace.list"
	rm "$INSTDIR/keys/replace.list"
fi

exit 0
