#!/bin/sh
echo "The installation of Simple Zoom Panel has started!"

sleep 3
echo "Installing main dependencies..."

opkg update
opkg install curl
opkg instal wget
opkg install python3
opkg install python3-pip
pip3 install requests

echo ""

sleep 3
echo "Updating permisions.."
chmod 755 /usr/lib/enigma2/python/Plugins/Extensions/SimpleZOOMPanel/plugin.py
chmod 755 /usr/lib/enigma2/python/Plugins/Extensions/SimpleZOOMPanel/Centrum/Tools/FCA.sh
chmod 755 /usr/script/AUTFCA.sh

sleep 3
echo "The installation of Simple Zoom Panel is done!"
rm -rf /CONTROL/

echo "Your receiver will now restart."
sleep 2
init 4
sleep 2
init 3

exit 0
