#!/system/bin/sh
# Author: felonwan@gmail.com
# Modified: 2014-10-30

PRJN=qemu-lp #Project Name
INS_DIR=/data/${PRJN}
if [ -e "$INS_DIR" ]; then
	echo "Remove ${PRJN}? (Y--remove; other--not remove)"
	read ans
	 if [ "$ans" == "Y" ]; then
       umount $INS_DIR
       if [ $? -eq 0 ]; then
	     rm -r $INS_DIR
	     echo "Uninstall ${PRJN} Completed。"
	   fi
	 fi
else
    echo "Can not find $INS_DIR。"
    echo "Please manually check its existence, if exist, remove directly."
fi
