#!/bin/sh
[ "$1" != "upgrade" ] || exit 0
if [ -f /etc/enigma2/gemini_desktop.xml ]
then
	mkdir -p /etc/enigma2/gemini_bak
	cd /etc/enigma2/gemini_bak
	tar czvf gemini-plugin.tar.gz /etc/enigma2/gemini_desktop.xml /etc/enigma2/gemini_daemon.xml /etc/enigma2/gemini_info.xml /etc/enigma2/gemini_setup.xml /etc/enigma2/gMultiQuickButton /etc/enigma2/gemini_user_desktop  >/dev/null 2>&1
fi
if [ -f /usr/lib/enigma2/python/Plugins/Bp/geminimain/externAddonFilterList.py ]
then
	cp -a /usr/lib/enigma2/python/Plugins/Bp/geminimain/externAddonFilterList.py /etc/enigma2/gemini_bak/externAddonFilterList.py
fi
