Update iNB.sh

This commit is contained in:
gutosie
2022-02-25 09:27:43 +02:00
committed by GitHub
parent 699e68573a
commit fce6e45d3c

9
iNB.sh
View File

@@ -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