mirror of
https://github.com/gutosie/neoboot.git
synced 2025-11-05 05:35:39 +01:00
Update iNB.sh
This commit is contained in:
20
iNB.sh
20
iNB.sh
@@ -13,13 +13,13 @@ elif [ -f /etc/opkg/opkg.conf ] ; then
|
|||||||
STATUS='/var/lib/opkg/status'
|
STATUS='/var/lib/opkg/status'
|
||||||
OS='Opensource'
|
OS='Opensource'
|
||||||
fi
|
fi
|
||||||
|
if [ ! -e /.multinfo ]; then
|
||||||
[ -e /tmp/neoboot.zip ] && rm -f /tmp/neoboot.zip
|
[ -e /tmp/neoboot.zip ] && rm -f /tmp/neoboot.zip
|
||||||
[ -e /tmp/neoboot-main ] && rm -rf /tmp/neoboot-main
|
[ -e /tmp/neoboot-main ] && rm -rf /tmp/neoboot-main
|
||||||
[ $PL ] && echo "Pobieranie archiwum..." || echo "Downloading archive file..."
|
[ $PL ] && echo "Pobieranie archiwum..." || echo "Downloading archive file..."
|
||||||
URL='https://github.com/gutosie/neoboot/archive/main.zip'
|
URL='https://github.com/gutosie/neoboot/archive/main.zip'
|
||||||
curl -kLs $URL -o /tmp/neoboot.zip
|
curl -kLs $URL -o /tmp/neoboot.zip
|
||||||
Cel="/usr/lib/enigma2/python/Plugins/Extensions"
|
Cel="/usr/lib/enigma2/python/Plugins/Extensions"
|
||||||
|
|
||||||
if [ $BOXHOSTNAME = "dm500hd" ] || [ $BOXHOSTNAME = "dm800se" ] || [ $BOXHOSTNAME = "dm800" ] || [ $BOXHOSTNAME = "dm8000" ]; then
|
if [ $BOXHOSTNAME = "dm500hd" ] || [ $BOXHOSTNAME = "dm800se" ] || [ $BOXHOSTNAME = "dm800" ] || [ $BOXHOSTNAME = "dm8000" ]; then
|
||||||
break;
|
break;
|
||||||
else
|
else
|
||||||
@@ -43,11 +43,9 @@ 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
|
||||||
|
|
||||||
if [ $BOXHOSTNAME = "dm500hd" ] || [ $BOXHOSTNAME = "dm800se" ] || [ $BOXHOSTNAME = "dm800" ] || [ $BOXHOSTNAME = "dm8000" ]; then
|
if [ $BOXHOSTNAME = "dm500hd" ] || [ $BOXHOSTNAME = "dm800se" ] || [ $BOXHOSTNAME = "dm800" ] || [ $BOXHOSTNAME = "dm8000" ]; then
|
||||||
cp -af /tmp/neoboot-main/NeoBoot/tmpfiles/runpy/mips_run.py /tmp/neoboot-main/NeoBoot/run.py; rm -r /tmp/neoboot-main/NeoBoot/ubi_reader*; rm -r /tmp/neoboot-main/NeoBoot/tmpfiles; rm -r /tmp/neoboot-main/NeoBoot/bin/neoinitar*; rm -r /tmp/neoboot-main/NeoBoot/bin/nanddump*; rm -r /tmp/neoboot-main/NeoBoot/bin/fbcle*; rm -r /tmp/neoboot-main/NeoBoot/bin/neob*; rm -r /tmp/neoboot-main/NeoBoot/bin/nandwrite; rm -r /tmp/neoboot-main/NeoBoot/bin/neoinitmips_vu
|
cp -af /tmp/neoboot-main/NeoBoot/tmpfiles/runpy/mips_run.py /tmp/neoboot-main/NeoBoot/run.py; rm -r /tmp/neoboot-main/NeoBoot/ubi_reader*; rm -r /tmp/neoboot-main/NeoBoot/tmpfiles; rm -r /tmp/neoboot-main/NeoBoot/bin/neoinitar*; rm -r /tmp/neoboot-main/NeoBoot/bin/nanddump*; rm -r /tmp/neoboot-main/NeoBoot/bin/fbcle*; rm -r /tmp/neoboot-main/NeoBoot/bin/neob*; rm -r /tmp/neoboot-main/NeoBoot/bin/nandwrite; rm -r /tmp/neoboot-main/NeoBoot/bin/neoinitmips_vu
|
||||||
fi
|
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
|
||||||
@@ -69,7 +67,6 @@ else
|
|||||||
chmod -R +x ./ubi_reader_mips/*
|
chmod -R +x ./ubi_reader_mips/*
|
||||||
chattr +i /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/plugin.py
|
chattr +i /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/plugin.py
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $PL ] ; then
|
if [ $PL ] ; then
|
||||||
echo ""
|
echo ""
|
||||||
echo "#####################################################"
|
echo "#####################################################"
|
||||||
@@ -90,5 +87,20 @@ if [ $OS = 'DreamOS' ]; then
|
|||||||
else
|
else
|
||||||
killall -9 enigma2
|
killall -9 enigma2
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
if [ $PL ] ; then
|
||||||
|
echo ""
|
||||||
|
echo "#####################################################"
|
||||||
|
echo ">>>> Error! To nie jest image flash. <<<<"
|
||||||
|
echo "#####################################################"
|
||||||
|
echo ""
|
||||||
|
else
|
||||||
|
echo ""
|
||||||
|
echo "#####################################################"
|
||||||
|
echo ">>>> Error! Go back to image flash. <<<<#"
|
||||||
|
echo "#####################################################"
|
||||||
|
echo ""
|
||||||
|
fi
|
||||||
|
fi
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user