Files
neoboot2/iNB.sh
2019-02-11 20:56:15 +02:00

50 lines
1.6 KiB
Bash

#!/bin/sh
#
#skrypt instaluje neoboot-a
#
if `grep -q 'osd.language=pl_PL' </etc/enigma2/settings`; then
PL=1
fi
[ -e /tmp/neoboot.zip ] && rm -f /tmp/neoboot.zip
[ -e /tmp/neoboot2-master ] && rm -rf /tmp/neoboot2-master
[ $PL ] && echo "Pobieranie archiwum..." || echo "Downloading archive file..."
URL='https://github.com/gutosie/neoboot2./archive/master.zip'
curl -kLs $URL -o /tmp/neoboot.zip
cd /tmp/
if [ ! -e /tmp/master.zip ]; then
wget $URL
mv -f /tmp/master2.zip /tmp/neoboot.zip
fi
unzip -qn ./neoboot..zip
rm -f /tmp/neoboot..zip
#kopiowanie
[ $PL ] && echo "Instalowanie..." || echo "Instaling..."
Cel="/usr/lib/enigma2/python/Plugins/Extensions"
[ -e $Cel/NeoBoot ] && rm -rf $Cel/NeoBoot/* || mkdir -p $Cel/NeoBoot
mv -f /tmp/neoboot2-master/NeoBoot/* $Cel/NeoBoot
[ -e /tmp/neoboot2-master ] && rm -rf /tmp/neoboot2-master
cd $Cel/NeoBoot
chmod 755 ./bin/*
chmod 755 ./target/*
chmod 755 ./ex_init.py
chmod 755 ./files/*.sh
chmod -R +x ./ubi_reader/*
if [ $PL ] ; then
echo ""
echo "#####################################################"
echo "# NEOBOOT ZOSTAL ZAINSTALOWANY #"
echo "#####################################################"
echo "# ZRESTARTUJ TUNER #"
echo "#####################################################"
echo ""
else
echo ""
echo "#####################################################"
echo "# NEOBOOT INSTALLED SUCCESSFULLY #"
echo "#####################################################"
echo "# PLEASE RESTART YOUR STB #"
echo "#####################################################"
echo ""
fi
exit 0