From fce6e45d3cae443774709836cfe20e00a53dccb5 Mon Sep 17 00:00:00 2001 From: gutosie Date: Fri, 25 Feb 2022 09:27:43 +0200 Subject: [PATCH] Update iNB.sh --- iNB.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/iNB.sh b/iNB.sh index f97bd36..cf84acc 100644 --- a/iNB.sh +++ b/iNB.sh @@ -37,6 +37,10 @@ fi unzip -qn ./neoboot.zip rm -f /tmp/neoboot.zip [ -e /tmp/main.zip ] && rm -rf /tmp/main.zip +BOXHOSTNAME=$( cat /etc/hostname) +if [ $BOXHOSTNAME = "dm500hd" ] || [ $BOXHOSTNAME = dm800se" ] || [ $BOXHOSTNAME = "dm800" ] || [ $BOXHOSTNAME = "dm8000" ]; then + cp -af /tmp/NeoBoot/tmpfiles/runpy/mips_run.py /tmp/NeoBoot/run.py; rm -r /tmp/NeoBoot/ubi_reader*; rm -r /tmp/NeoBoot/tmpfiles; rm -r /tmp/NeoBoot/bin/neoinitar*; rm -r /tmp/NeoBoot/bin/nanddump*; rm -r /tmp/NeoBoot/bin/fbcle* +fi #kopiowanie if [ -e $Cel/NeoBoot/.location ]; then rm -rf $Cel/NeoBoot/.location @@ -53,9 +57,7 @@ chmod 755 ./ex_init.py chmod 755 ./files/*.sh chmod -R +x ./ubi_reader_arm/* chmod -R +x ./ubi_reader_mips/* -if [ -e /etc/name ]; then - rm -f /tmp/.* -fi +chattr +i /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/plugin.py if [ $PL ] ; then echo "" echo "#####################################################" @@ -74,7 +76,6 @@ sleep 2 if [ $OS = 'DreamOS' ]; then systemctl restart enigma2 else - chattr +i /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/plugin.py killall -9 enigma2 fi exit 0