diff --git a/NeoBoot/files/stbbranding.py b/NeoBoot/files/stbbranding.py index 8b61847..98f1c99 100644 --- a/NeoBoot/files/stbbranding.py +++ b/NeoBoot/files/stbbranding.py @@ -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 diff --git a/NeoBoot/files/tools.py b/NeoBoot/files/tools.py index b23d376..a79fce9 100644 --- a/NeoBoot/files/tools.py +++ b/NeoBoot/files/tools.py @@ -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 diff --git a/NeoBoot/files/userscript.sh b/NeoBoot/files/userscript.sh new file mode 100644 index 0000000..ccb0b77 --- /dev/null +++ b/NeoBoot/files/userscript.sh @@ -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 \ No newline at end of file