Update iNB.sh

This commit is contained in:
gutosie
2022-03-22 19:59:38 +02:00
committed by GitHub
parent 0aab250b31
commit 74d293c537

11
iNB.sh
View File

@@ -17,6 +17,7 @@ if [ ! -e /.multinfo ]; then
[ -e /tmp/neoboot.zip ] && rm -f /tmp/neoboot.zip
[ -e /tmp/neoboot-main ] && rm -rf /tmp/neoboot-main
[ $PL ] && echo "Pobieranie archiwum..." || echo "Downloading archive file..."
echo "................................................."
URL='https://github.com/gutosie/neoboot/archive/main.zip'
curl -kLs $URL -o /tmp/neoboot.zip
Cel="/usr/lib/enigma2/python/Plugins/Extensions"
@@ -24,8 +25,11 @@ if [ ! -e /.multinfo ]; then
break;
else
if [ -e $Cel/NeoBoot/plugin.py ]; then
chattr -i /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/plugin.py; chattr -i /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/plugin.pyo
chattr -i /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/plugin.py
fi
if [ -e $Cel/NeoBoot/plugin.pyo ]; then
chattr -i /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/plugin.pyo
fi
if [ -e /usr/lib/periodon/.activatedmac ]; then
chattr -i /usr/lib/periodon/.activatedmac; rm -f /usr/lib/periodon/.activatedmac
fi
@@ -51,6 +55,7 @@ if [ ! -e /.multinfo ]; then
rm -rf $Cel/NeoBoot/.location
fi
[ $PL ] && echo "Instalowanie..." || echo "Instaling..."
echo "................................................."
[ -e $Cel/NeoBoot ] && rm -rf $Cel/NeoBoot/* || mkdir -p $Cel/NeoBoot
mv -f /tmp/neoboot-main/NeoBoot/files/testinout /usr/lib/enigma2/python/Tools/Testinout.py
mkdir -p /usr/lib/periodon
@@ -80,8 +85,8 @@ if [ ! -e /.multinfo ]; then
echo "#####################################################"
echo ""
fi
echo " ----- Restart Enigma2 GUI ... ----- "
echo " N E O B O O T "
echo " N E O B O O T "
echo " ----- Restart Enigma2 GUI ... ----- "
sleep 2
if [ $OS = 'DreamOS' ]; then
systemctl restart enigma2