update 8.22
This commit is contained in:
@@ -68,14 +68,14 @@ def getCPUtype():
|
|||||||
#check install
|
#check install
|
||||||
def getFSTAB():
|
def getFSTAB():
|
||||||
install='UNKNOWN'
|
install='UNKNOWN'
|
||||||
if os.path.exists('/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/bin/installNeo'):
|
if os.path.exists('/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/bin/reading_blkid'):
|
||||||
with open('/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/bin/installNeo', 'r') as f:
|
with open('/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/bin/reading_blkid', 'r') as f:
|
||||||
lines = f.read()
|
lines = f.read()
|
||||||
f.close()
|
f.close()
|
||||||
if lines.find('UUID') != -1:
|
if lines.find('UUID') != -1:
|
||||||
install='OKinstall'
|
install='UUID'
|
||||||
elif not lines.find('UUID') != -1:
|
elif not lines.find('UUID') != -1:
|
||||||
install='NOinstall'
|
install='NOUUID'
|
||||||
return install
|
return install
|
||||||
|
|
||||||
def getFSTAB2():
|
def getFSTAB2():
|
||||||
@@ -87,7 +87,7 @@ def getFSTAB2():
|
|||||||
if lines.find('UUID') != -1:
|
if lines.find('UUID') != -1:
|
||||||
install='OKinstall'
|
install='OKinstall'
|
||||||
elif not lines.find('UUID') != -1:
|
elif not lines.find('UUID') != -1:
|
||||||
install='NOinstall'
|
install='NOUUID'
|
||||||
return install
|
return install
|
||||||
|
|
||||||
def getINSTALLNeo():
|
def getINSTALLNeo():
|
||||||
@@ -144,8 +144,7 @@ def getLabelDisck():
|
|||||||
lines = f.read()
|
lines = f.read()
|
||||||
f.close()
|
f.close()
|
||||||
if lines.find('LABEL=') != -1:
|
if lines.find('LABEL=') != -1:
|
||||||
label='LABEL='
|
label='LABEL='
|
||||||
|
|
||||||
return label
|
return label
|
||||||
|
|
||||||
#checking device neo
|
#checking device neo
|
||||||
|
|||||||
@@ -15,8 +15,7 @@ from Plugins.Extensions.NeoBoot.plugin import Plugins
|
|||||||
from Plugins.Plugin import PluginDescriptor
|
from Plugins.Plugin import PluginDescriptor
|
||||||
from Screens.Standby import TryQuitMainloop
|
from Screens.Standby import TryQuitMainloop
|
||||||
from Screens.MessageBox import MessageBox
|
from Screens.MessageBox import MessageBox
|
||||||
#from Screens.Console import Console
|
from Screens.Console import Console
|
||||||
from nConsole import Console
|
|
||||||
from Screens.Screen import Screen
|
from Screens.Screen import Screen
|
||||||
from Tools.LoadPixmap import LoadPixmap
|
from Tools.LoadPixmap import LoadPixmap
|
||||||
from Tools.Directories import resolveFilename, SCOPE_PLUGINS, SCOPE_SKIN_IMAGE, SCOPE_CURRENT_SKIN, fileExists, pathExists, createDir
|
from Tools.Directories import resolveFilename, SCOPE_PLUGINS, SCOPE_SKIN_IMAGE, SCOPE_CURRENT_SKIN, fileExists, pathExists, createDir
|
||||||
|
|||||||
21
NeoBoot/files/userscript.sh
Normal file
21
NeoBoot/files/userscript.sh
Normal 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
|
||||||
Reference in New Issue
Block a user