From ab4120f687f1b55dc121b59e630c49a38b5ce835 Mon Sep 17 00:00:00 2001 From: gutosie Date: Mon, 6 Dec 2021 11:52:52 +0200 Subject: [PATCH] Update iNB.sh --- iNB.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/iNB.sh b/iNB.sh index 1470707..37b5259 100644 --- a/iNB.sh +++ b/iNB.sh @@ -10,6 +10,10 @@ fi [ $PL ] && echo "Pobieranie archiwum..." || echo "Downloading archive file..." URL='https://github.com/gutosie/neoboot/archive/main.zip' curl -kLs $URL -o /tmp/neoboot.zip +Cel="/usr/lib/enigma2/python/Plugins/Extensions" +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 +fi cd /tmp/ #pobieranie if [ ! -e /tmp/neoboot.zip ]; then @@ -24,13 +28,9 @@ unzip -qn ./neoboot.zip rm -f /tmp/neoboot.zip [ -e /tmp/main.zip ] && rm -rf /tmp/main.zip #kopiowanie -Cel="/usr/lib/enigma2/python/Plugins/Extensions" if [ -e $Cel/NeoBoot/.location ]; then rm -rf $Cel/NeoBoot/.location fi -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 -fi [ $PL ] && echo "Instalowanie..." || echo "Instaling..." [ -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