#! /bin/sh

if [ "`readlink /etc/hildon/theme`" = /usr/share/themes/blackplastictheme-themedir ]; then
   if [ -x /usr/bin/personalisation ]; then
	   /usr/bin/personalisation /usr/share/themes/default
   fi
fi

# check if there is a backup made by theme customizer and then delete it

if [ -d /opt/theme-customizer/backups/opt/usr/share/themes/blackplastictheme-themedir ]; then
  rm -rf /opt/theme-customizer/backups/opt/usr/share/themes/blackplastictheme-themedir
fi 

rm -rf /opt/plastic-schemes/DarkBlack
rm -rf /opt/plastic-schemes/DarkBlue
rm -rf /opt/plastic-schemes/DarkGreen
rm -rf /opt/plastic-schemes/DarkOrange
rm -rf /opt/plastic-schemes/DarkPink
rm -rf /opt/plastic-schemes/DarkRed
rm -rf /opt/plastic-schemes/DarkYellow
rm -rf /usr/share/themes/blackplastictheme-themedir
