mirror of
https://github.com/gutosie/neoboot.git
synced 2025-10-30 19:05:48 +01:00
Add files via upload
This commit is contained in:
@@ -49,7 +49,6 @@ def LogCrashGS(line):
|
|||||||
def fileCheck(f, mode = 'r'):
|
def fileCheck(f, mode = 'r'):
|
||||||
return fileExists(f, mode) and f
|
return fileExists(f, mode) and f
|
||||||
|
|
||||||
|
|
||||||
# if not IsImageName():
|
# if not IsImageName():
|
||||||
# from Components.PluginComponent import plugins
|
# from Components.PluginComponent import plugins
|
||||||
# plugins.reloadPlugins()
|
# plugins.reloadPlugins()
|
||||||
@@ -60,6 +59,17 @@ def IsImageName():
|
|||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
def mountp():
|
||||||
|
pathmp = []
|
||||||
|
if os.path.isfile('/proc/mounts'):
|
||||||
|
for line in open('/proc/mounts'):
|
||||||
|
if '/dev/sd' in line or '/dev/disk/by-uuid/' in line or '/dev/mmc' in line or '/dev/mtdblock' in line:
|
||||||
|
pathmp.append(line.split()[1].replace('\\040', ' ') + '/')
|
||||||
|
pathmp.append('/usr/share/enigma2/')
|
||||||
|
pathmp.append('/etc/enigma2/')
|
||||||
|
pathmp.append('/tmp/')
|
||||||
|
return pathmp
|
||||||
|
|
||||||
def getSupportedTuners():
|
def getSupportedTuners():
|
||||||
supportedT=''
|
supportedT=''
|
||||||
if os.path.exists('/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/stbinfo.cfg'):
|
if os.path.exists('/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/stbinfo.cfg'):
|
||||||
@@ -430,15 +440,6 @@ def getTunerModel(): #< neoboot.py
|
|||||||
BOX_NAME = open('/proc/stb/info/model').read().strip()
|
BOX_NAME = open('/proc/stb/info/model').read().strip()
|
||||||
return BOX_NAME
|
return BOX_NAME
|
||||||
|
|
||||||
def getBoxModelVU():
|
|
||||||
try:
|
|
||||||
if os.path.isfile('/proc/stb/info/vumodel'):
|
|
||||||
return open('/proc/stb/info/vumodel').read().strip().upper()
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
|
|
||||||
return _('unavailable')
|
|
||||||
|
|
||||||
#zwraca strukture folderu zip - vuplus/vumodel
|
#zwraca strukture folderu zip - vuplus/vumodel
|
||||||
def getImageFolder():
|
def getImageFolder():
|
||||||
if os.path.isfile('/proc/stb/info/vumodel'):
|
if os.path.isfile('/proc/stb/info/vumodel'):
|
||||||
@@ -734,9 +735,20 @@ def getVuBoxModel():
|
|||||||
|
|
||||||
return BOX_MODEL
|
return BOX_MODEL
|
||||||
|
|
||||||
|
|
||||||
|
def getBoxModelVU():
|
||||||
|
try:
|
||||||
|
if os.path.isfile('/proc/stb/info/vumodel'):
|
||||||
|
return open('/proc/stb/info/vumodel').read().strip().upper()
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
|
return _('unavailable')
|
||||||
|
|
||||||
|
|
||||||
def getMachineProcModel():
|
def getMachineProcModel():
|
||||||
if os.path.isfile('/proc/stb/info/vumodel'):
|
if os.path.isfile('/proc/stb/info/vumodel'):
|
||||||
BOX_NAME = getBoxModel()
|
BOX_NAME = getBoxModelVU()
|
||||||
BOX_MODEL = getVuBoxModel()
|
BOX_MODEL = getVuBoxModel()
|
||||||
if BOX_MODEL == 'vuplus':
|
if BOX_MODEL == 'vuplus':
|
||||||
if BOX_NAME == 'duo':
|
if BOX_NAME == 'duo':
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ from Tools.Directories import resolveFilename, SCOPE_PLUGINS, SCOPE_SKIN_IMAGE,
|
|||||||
from os import system, listdir, mkdir, chdir, getcwd, rename as os_rename, remove as os_remove, popen
|
from os import system, listdir, mkdir, chdir, getcwd, rename as os_rename, remove as os_remove, popen
|
||||||
from os.path import dirname, isdir, isdir as os_isdir
|
from os.path import dirname, isdir, isdir as os_isdir
|
||||||
from enigma import eTimer
|
from enigma import eTimer
|
||||||
from stbbranding import fileCheck, getNeoLocation, getImageNeoBoot, getKernelVersionString, getBoxHostName, getCPUtype, getBoxVuModel, getTunerModel, getCPUSoC, getImageATv
|
from stbbranding import fileCheck, getNeoLocation, getImageNeoBoot, getKernelVersionString, getBoxHostName, getCPUtype, getBoxVuModel, getTunerModel, getCPUSoC, getImageATv, getBoxModelVU
|
||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
import sys
|
import sys
|
||||||
@@ -214,10 +214,6 @@ class MBTools(Screen):
|
|||||||
self.list.append (res)
|
self.list.append (res)
|
||||||
self ['list']. list = self.list
|
self ['list']. list = self.list
|
||||||
|
|
||||||
# res = (_ ('Rename image'), png, 18)
|
|
||||||
# self.list.append (res)
|
|
||||||
# self ['list']. list = self.list
|
|
||||||
|
|
||||||
res = (_ ('Supported sat tuners'), png, 19)
|
res = (_ ('Supported sat tuners'), png, 19)
|
||||||
self.list.append (res)
|
self.list.append (res)
|
||||||
self ['list']. list = self.list
|
self ['list']. list = self.list
|
||||||
@@ -273,8 +269,6 @@ class MBTools(Screen):
|
|||||||
pass
|
pass
|
||||||
if self.sel == 18 and self.session.open(CreateSwap):
|
if self.sel == 18 and self.session.open(CreateSwap):
|
||||||
pass
|
pass
|
||||||
# if self.sel == 18 and self.session.open(RenameImage):
|
|
||||||
# pass
|
|
||||||
if self.sel == 19 and self.session.open(TunerInfo):
|
if self.sel == 19 and self.session.open(TunerInfo):
|
||||||
pass
|
pass
|
||||||
if self.sel == 20 and self.session.open(MultiBootMyHelp):
|
if self.sel == 20 and self.session.open(MultiBootMyHelp):
|
||||||
@@ -282,6 +276,9 @@ class MBTools(Screen):
|
|||||||
if self.sel == 21 and self.session.open(neoDONATION):
|
if self.sel == 21 and self.session.open(neoDONATION):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
if self.sel == 22 and self.session.open(CheckInternet):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
class MBBackup(Screen):
|
class MBBackup(Screen):
|
||||||
if isFHD():
|
if isFHD():
|
||||||
@@ -1197,7 +1194,8 @@ class CheckInstall(Screen):
|
|||||||
self.myClose(_('Sorry, Neoboot can be installed or upgraded only when booted from Flash'))
|
self.myClose(_('Sorry, Neoboot can be installed or upgraded only when booted from Flash'))
|
||||||
|
|
||||||
def neocheck2(self):
|
def neocheck2(self):
|
||||||
os.system('rm -f ' + LinkNeoBoot + '/files/modulecheck; echo "\n====================================================>\nCheck result:" > ' + LinkNeoBoot + '/files/modulecheck')
|
os.system(_('rm -f ' + LinkNeoBoot + '/files/modulecheck; echo %s - %s > ' +LinkNeoBoot+ '/files/modulecheck') % (getBoxModelVU(), getCPUSoC()) )
|
||||||
|
os.system('echo "\n====================================================>\nCheck result:" >> ' + LinkNeoBoot + '/files/modulecheck')
|
||||||
os.system('echo "* neoboot location:" >> ' +LinkNeoBoot+ '/files/modulecheck; cat "/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location" >> ' +LinkNeoBoot+ '/files/modulecheck')
|
os.system('echo "* neoboot location:" >> ' +LinkNeoBoot+ '/files/modulecheck; cat "/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location" >> ' +LinkNeoBoot+ '/files/modulecheck')
|
||||||
os.system('echo "\n* neoboot location install:" >> ' +LinkNeoBoot+ '/files/modulecheck; cat "/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/bin/install" >> ' +LinkNeoBoot+ '/files/modulecheck')
|
os.system('echo "\n* neoboot location install:" >> ' +LinkNeoBoot+ '/files/modulecheck; cat "/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/bin/install" >> ' +LinkNeoBoot+ '/files/modulecheck')
|
||||||
os.system('echo "\n* neoboot location mount:" >> ' +LinkNeoBoot+ '/files/modulecheck; cat "/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/neo.sh" >> ' +LinkNeoBoot+ '/files/modulecheck')
|
os.system('echo "\n* neoboot location mount:" >> ' +LinkNeoBoot+ '/files/modulecheck; cat "/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/neo.sh" >> ' +LinkNeoBoot+ '/files/modulecheck')
|
||||||
@@ -1237,7 +1235,7 @@ class CheckInstall(Screen):
|
|||||||
else:
|
else:
|
||||||
os.system('echo "\n* STB is not ARMv7 or MIPS" >> ' +LinkNeoBoot+ '/files/modulecheck')
|
os.system('echo "\n* STB is not ARMv7 or MIPS" >> ' +LinkNeoBoot+ '/files/modulecheck')
|
||||||
|
|
||||||
cmd = ' cat ' +LinkNeoBoot+ '/files/modulecheck'
|
cmd = 'echo "\n<====================================================" >> ' + LinkNeoBoot + '/files/modulecheck; cat ' +LinkNeoBoot+ '/files/modulecheck'
|
||||||
cmd1 = ''
|
cmd1 = ''
|
||||||
self.session.openWithCallback(self.close, Console, _('NeoBoot....'), [cmd,
|
self.session.openWithCallback(self.close, Console, _('NeoBoot....'), [cmd,
|
||||||
cmd1])
|
cmd1])
|
||||||
|
|||||||
Reference in New Issue
Block a user