From f1bce42d898d482e1b0910d95d40c5a0acdd1339 Mon Sep 17 00:00:00 2001 From: gutosie Date: Fri, 13 Jan 2023 19:42:33 +0200 Subject: [PATCH] Update iNB.sh --- iNB.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/iNB.sh b/iNB.sh index b4fb4f5..436f865 100644 --- a/iNB.sh +++ b/iNB.sh @@ -24,6 +24,22 @@ if [ ! -e /.multinfo ]; then URL='https://github.com/gutosie/neoboot/archive/main.zip' curl -kLs $URL -o /tmp/neoboot.zip Cel="/usr/lib/enigma2/python/Plugins/Extensions" + if [ $BOXHOSTNAME = "dm500hd" ] || [ $BOXHOSTNAME = "dm800se" ] || [ $BOXHOSTNAME = "dm800" ] || [ $BOXHOSTNAME = "dm8000" ]; then + break; + else + if [ -e $Cel/NeoBoot/plugin.py ]; then + 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 $Cel/NeoBoot/plugin.pyc ]; then + chattr -i /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/plugin.pyc + fi + if [ -e /usr/lib/periodon/.activatedmac ]; then + chattr -i /usr/lib/periodon/.activatedmac; rm -f /usr/lib/periodon/.activatedmac + fi + fi cd /tmp/ #pobieranie if [ ! -e /tmp/neoboot.zip ]; then