mirror of
https://github.com/gutosie/neoboot.git
synced 2025-10-26 17:06:05 +01:00
Update iNB.sh
This commit is contained in:
30
iNB.sh
30
iNB.sh
@@ -2,6 +2,7 @@
|
|||||||
#
|
#
|
||||||
#skrypt instaluje neoboot-a
|
#skrypt instaluje neoboot-a
|
||||||
#
|
#
|
||||||
|
BOXHOSTNAME=$( cat /etc/hostname)
|
||||||
if `grep -q 'osd.language=pl_PL' </etc/enigma2/settings`; then
|
if `grep -q 'osd.language=pl_PL' </etc/enigma2/settings`; then
|
||||||
PL=1
|
PL=1
|
||||||
fi
|
fi
|
||||||
@@ -18,11 +19,16 @@ fi
|
|||||||
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 [ -e $Cel/NeoBoot/plugin.py ]; then
|
|
||||||
chattr -i /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/plugin.py; chattr -i /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/plugin.pyo
|
if [ $BOXHOSTNAME = "dm500hd" ] || [ $BOXHOSTNAME = "dm800se" ] || [ $BOXHOSTNAME = "dm800" ] || [ $BOXHOSTNAME = "dm8000" ]; then
|
||||||
fi
|
break;
|
||||||
if [ -e /usr/lib/periodon/.activatedmac ]; then
|
else
|
||||||
chattr -i /usr/lib/periodon/.activatedmac; rm -f /usr/lib/periodon/.activatedmac
|
if [ -e $Cel/NeoBoot/plugin.py ]; then
|
||||||
|
chattr -i /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/plugin.py; chattr -i /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/plugin.pyo
|
||||||
|
fi
|
||||||
|
if [ -e /usr/lib/periodon/.activatedmac ]; then
|
||||||
|
chattr -i /usr/lib/periodon/.activatedmac; rm -f /usr/lib/periodon/.activatedmac
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
cd /tmp/
|
cd /tmp/
|
||||||
#pobieranie
|
#pobieranie
|
||||||
@@ -37,10 +43,11 @@ 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
|
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*
|
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*
|
||||||
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
|
||||||
@@ -55,9 +62,14 @@ cd $Cel/NeoBoot
|
|||||||
chmod 755 ./bin/*
|
chmod 755 ./bin/*
|
||||||
chmod 755 ./ex_init.py
|
chmod 755 ./ex_init.py
|
||||||
chmod 755 ./files/*.sh
|
chmod 755 ./files/*.sh
|
||||||
chmod -R +x ./ubi_reader_arm/*
|
if [ $BOXHOSTNAME = "dm500hd" ] || [ $BOXHOSTNAME = "dm800se" ] || [ $BOXHOSTNAME = "dm800" ] || [ $BOXHOSTNAME = "dm8000" ]; then
|
||||||
chmod -R +x ./ubi_reader_mips/*
|
break;
|
||||||
chattr +i /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/plugin.py
|
else
|
||||||
|
chmod -R +x ./ubi_reader_arm/*
|
||||||
|
chmod -R +x ./ubi_reader_mips/*
|
||||||
|
chattr +i /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/plugin.py
|
||||||
|
fi
|
||||||
|
|
||||||
if [ $PL ] ; then
|
if [ $PL ] ; then
|
||||||
echo ""
|
echo ""
|
||||||
echo "#####################################################"
|
echo "#####################################################"
|
||||||
|
|||||||
Reference in New Issue
Block a user