update 8.22

This commit is contained in:
gutosie
2020-04-13 18:05:22 +02:00
committed by GitHub
parent db99f9246e
commit 1f3b918331
3 changed files with 28 additions and 9 deletions

View File

@@ -68,14 +68,14 @@ def getCPUtype():
#check install
def getFSTAB():
install='UNKNOWN'
if os.path.exists('/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/bin/installNeo'):
with open('/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/bin/installNeo', 'r') as f:
if os.path.exists('/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/bin/reading_blkid'):
with open('/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/bin/reading_blkid', 'r') as f:
lines = f.read()
f.close()
if lines.find('UUID') != -1:
install='OKinstall'
install='UUID'
elif not lines.find('UUID') != -1:
install='NOinstall'
install='NOUUID'
return install
def getFSTAB2():
@@ -87,7 +87,7 @@ def getFSTAB2():
if lines.find('UUID') != -1:
install='OKinstall'
elif not lines.find('UUID') != -1:
install='NOinstall'
install='NOUUID'
return install
def getINSTALLNeo():
@@ -144,8 +144,7 @@ def getLabelDisck():
lines = f.read()
f.close()
if lines.find('LABEL=') != -1:
label='LABEL='
label='LABEL='
return label
#checking device neo

View File

@@ -15,8 +15,7 @@ from Plugins.Extensions.NeoBoot.plugin import Plugins
from Plugins.Plugin import PluginDescriptor
from Screens.Standby import TryQuitMainloop
from Screens.MessageBox import MessageBox
#from Screens.Console import Console
from nConsole import Console
from Screens.Console import Console
from Screens.Screen import Screen
from Tools.LoadPixmap import LoadPixmap
from Tools.Directories import resolveFilename, SCOPE_PLUGINS, SCOPE_SKIN_IMAGE, SCOPE_CURRENT_SKIN, fileExists, pathExists, createDir

View File

@@ -0,0 +1,21 @@
#!/bin/sh
# script gutosie - here you can add your own command to perform
if [ ! -e /usr/bin/ipkg ]; then
ln -sfn /usr/bin/opkg /usr/bin/ipkg ;
fi
if [ ! -e /usr/bin/ipkg-cl ]; then
ln -sfn /usr/bin/opkg-cl /usr/bin/ipkg-cl;
fi
if [ -f /etc/init.d/inadyn-mt ] ; then
/etc/init.d/inadyn-mt start;
fi
if [ ! -e /media/hdd] || [ ! -e /media/usb] ; then
if [ -e /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/mountpoint.sh ]; then
/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/mountpoint.sh;
fi
fi
echo ok