mirror of
https://github.com/gutosie/neoboot.git
synced 2025-11-01 11:55:47 +01:00
Update iNB.sh
This commit is contained in:
9
iNB.sh
9
iNB.sh
@@ -37,6 +37,10 @@ fi
|
|||||||
unzip -qn ./neoboot.zip
|
unzip -qn ./neoboot.zip
|
||||||
rm -f /tmp/neoboot.zip
|
rm -f /tmp/neoboot.zip
|
||||||
[ -e /tmp/main.zip ] && rm -rf /tmp/main.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
|
#kopiowanie
|
||||||
if [ -e $Cel/NeoBoot/.location ]; then
|
if [ -e $Cel/NeoBoot/.location ]; then
|
||||||
rm -rf $Cel/NeoBoot/.location
|
rm -rf $Cel/NeoBoot/.location
|
||||||
@@ -53,9 +57,7 @@ chmod 755 ./ex_init.py
|
|||||||
chmod 755 ./files/*.sh
|
chmod 755 ./files/*.sh
|
||||||
chmod -R +x ./ubi_reader_arm/*
|
chmod -R +x ./ubi_reader_arm/*
|
||||||
chmod -R +x ./ubi_reader_mips/*
|
chmod -R +x ./ubi_reader_mips/*
|
||||||
if [ -e /etc/name ]; then
|
chattr +i /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/plugin.py
|
||||||
rm -f /tmp/.*
|
|
||||||
fi
|
|
||||||
if [ $PL ] ; then
|
if [ $PL ] ; then
|
||||||
echo ""
|
echo ""
|
||||||
echo "#####################################################"
|
echo "#####################################################"
|
||||||
@@ -74,7 +76,6 @@ sleep 2
|
|||||||
if [ $OS = 'DreamOS' ]; then
|
if [ $OS = 'DreamOS' ]; then
|
||||||
systemctl restart enigma2
|
systemctl restart enigma2
|
||||||
else
|
else
|
||||||
chattr +i /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/plugin.py
|
|
||||||
killall -9 enigma2
|
killall -9 enigma2
|
||||||
fi
|
fi
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
Reference in New Issue
Block a user