mirror of
https://mojerepo.cf/NeoBoot/NeoBoot-9.git
synced 2025-11-01 02:45:57 +01:00
update 8.22
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
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