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:
8
iNB.sh
8
iNB.sh
@@ -22,10 +22,10 @@ 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
|
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 > /dev/null 2>&1
|
chattr -i /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/plugin.py; chattr -i /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/plugin.pyo
|
||||||
fi
|
fi
|
||||||
if [ -e /usr/lib/periodon/.activatedmac ]; then
|
if [ -e /usr/lib/periodon/.activatedmac ]; then
|
||||||
chattr -i /usr/lib/periodon/.activatedmac; rm -f /usr/lib/periodon/.activatedmac > /dev/null 2>&1
|
chattr -i /usr/lib/periodon/.activatedmac; rm -f /usr/lib/periodon/.activatedmac
|
||||||
fi
|
fi
|
||||||
cd /tmp/
|
cd /tmp/
|
||||||
#pobieranie
|
#pobieranie
|
||||||
@@ -70,13 +70,11 @@ else
|
|||||||
echo ""
|
echo ""
|
||||||
fi
|
fi
|
||||||
echo " ----- Restart Enigma2 GUI ... ----- "
|
echo " ----- Restart Enigma2 GUI ... ----- "
|
||||||
if [ -e $Cel/NeoBoot/plugin.py ]; then
|
|
||||||
chattr +i /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/plugin.py > /dev/null 2>&1
|
|
||||||
fi
|
|
||||||
sleep 2
|
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