Files
neoboot2/iNB.sh

49 lines
1.6 KiB
Bash
Raw Normal View History

2019-02-11 20:34:11 +02:00
#!/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
2019-02-11 20:53:42 +02:00
[ -e /tmp/neoboot2-master ] && rm -rf /tmp/neoboot2-master
2019-02-11 20:34:11 +02:00
[ $PL ] && echo "Pobieranie archiwum..." || echo "Downloading archive file..."
2019-02-11 21:05:11 +02:00
URL='https://github.com/gutosie/neoboot2/archive/master.zip'
2019-02-11 20:34:11 +02:00
curl -kLs $URL -o /tmp/neoboot.zip
cd /tmp/
if [ ! -e /tmp/master.zip ]; then
wget $URL
2019-02-11 20:59:14 +02:00
mv -f /tmp/master.zip /tmp/neoboot.zip
2019-02-11 20:34:11 +02:00
fi
2019-02-11 21:05:11 +02:00
unzip -qn ./neoboot.zip
rm -f /tmp/neoboot.zip
2019-02-11 20:34:11 +02:00
#kopiowanie
[ $PL ] && echo "Instalowanie..." || echo "Instaling..."
Cel="/usr/lib/enigma2/python/Plugins/Extensions"
[ -e $Cel/NeoBoot ] && rm -rf $Cel/NeoBoot/* || mkdir -p $Cel/NeoBoot
2019-02-11 20:53:42 +02:00
mv -f /tmp/neoboot2-master/NeoBoot/* $Cel/NeoBoot
[ -e /tmp/neoboot2-master ] && rm -rf /tmp/neoboot2-master
2019-02-11 20:34:11 +02:00
cd $Cel/NeoBoot
chmod 755 ./bin/*
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