#!/bin/sh
#backup transitions.ini

f=/tmp/maemeemo-text

cat > $f <<EOF
This package uses its own transitions.ini.
Your old one will be renamed to transitions.ini.mmmbak
If you needed to restore the maemeemo's transitions.ini, its copy is transitions.ini.maemeemo
The original transitions.ini will be restored when MaeMeeMo is removed.
EOF

	maemo-confirm-text "Installation notes" $f

cat > $f <<E
Whooops, seems your N900 is in the mass storage mode. 
Please unplug it from your computer or the installation will fail.
E

if [ "`mount | grep '/home/user/MyDocs type vfat'`" == "" ]
then
	maemo-confirm-text "Warning!" $f
fi
if [ "`mount | grep '/home/user/MyDocs type vfat'`" == "" ] # again
then
	exit 1
fi

	rm -f $f

mv /usr/share/hildon-desktop/transitions.ini /usr/share/hildon-desktop/transitions.ini.mmmbak
