mirror of
https://mojerepo.cf/NeoBoot/NeoBoot-9.git
synced 2025-11-03 20:36:09 +01:00
update 9.01
This commit is contained in:
@@ -530,8 +530,31 @@ class NeoBootInstallation(Screen):
|
||||
os.system('opkg install mtd-utils-ubifs')
|
||||
|
||||
# ARM - OctagonSF4008 - DM900 - Zgemma h7S - Octagon sf 8008 - AX HD60 4K #gbquad4k arm , #osmio4k arm, #Zgemma h9 arm, #Zgemma h7S arm , #Octagon SF4008
|
||||
if getBoxHostName() == 'ax51' or getBoxHostName() == 'dm920' or getBoxHostName() == 'et1x000' or getCPUSoC() == 'bcm7251' or getBoxHostName() == 'sf4008' or getCPUSoC() == 'bcm7251s' or getBoxHostName() == 'h7' or getCPUSoC() == 'bcm7252s' or getBoxHostName() == 'gbquad4k' or getBoxHostName == 'osmio4k' or getBoxHostName() == 'zgemmah9s' or getBoxHostName() == 'h9combo' or getBoxHostName() == 'h10' or getBoxHostName() == 'ax60' or getBoxHostName() == 'sf8008' or getCPUSoC() == 'bcm7251' or getCPUSoC() == 'BCM97252SSFF' or getBoxHostName() == 'dm900':
|
||||
os.system('cp -f ' + LinkNeoBoot + '/bin/neoinitarm /sbin/neoinitarm; chmod 0755 /sbin/neoinitarm; ln -sfn /sbin/neoinitarm /sbin/init; mv ' + LinkNeoBoot + '/tmpfiles/runpy/arm_run.py ' + LinkNeoBoot + '/run.py; cd')
|
||||
if getCPUSoC() or getBoxHostName() or getTunerModel() == ['ax51',
|
||||
'dm920',
|
||||
'et1x000',
|
||||
'bcm7251',
|
||||
'sf4008',
|
||||
'bcm7251s',
|
||||
'h7',
|
||||
'h9combo',
|
||||
'zgemmah9s',
|
||||
'h10',
|
||||
'bcm7252s',
|
||||
'gbquad4k',
|
||||
'osmio4k',
|
||||
'ax60',
|
||||
'sf8008',
|
||||
'bcm7251',
|
||||
'BCM97252SSFF',
|
||||
'dm900',
|
||||
'tmtwin4k',
|
||||
'anadol4k',
|
||||
'protek4k',
|
||||
'maxytecmulti',
|
||||
'force3uhd',
|
||||
'viper4k']:
|
||||
os.system('cp -f ' + LinkNeoBoot + '/bin/neoinitarm /sbin/neoinitarm; chmod 0755 /sbin/neoinitarm; ln -sfn /sbin/neoinitarm /sbin/init; mv ' + LinkNeoBoot + '/tmpfiles/runpy/arm_run.py ' + LinkNeoBoot + '/run.py; cd')
|
||||
|
||||
#VUPLUS ARM
|
||||
elif getCPUtype() == 'ARMv7' and getBoxHostName() != 'ustym4kpro':
|
||||
@@ -550,13 +573,17 @@ class NeoBootInstallation(Screen):
|
||||
os.system('mv ' + LinkNeoBoot + '/tmpfiles/target/vuZero4Kmmcblk0p4.sh ' + LinkNeoBoot + '/files/kernel.sh; mv ' + LinkNeoBoot + '/tmpfiles/runpy/zero4k_run.py ' + LinkNeoBoot + '/run.py; cd')
|
||||
|
||||
#Zgemma h7S arm
|
||||
elif getCPUSoC() == 'bcm7251s' or getBoxHostName() == 'h7':
|
||||
os.system('cd ' + LinkNeoBoot + '/' )
|
||||
os.system('cp -Rf ' + LinkNeoBoot + '/bin/neoinitarm /sbin/neoinitarm; cd')
|
||||
os.system('chmod 755 /sbin/neoinitarm; chmod 755 /sbin/neoinitarm')
|
||||
os.system('python ' + LinkNeoBoot + '/tmpfiles/runpy/findkerneldevice.py; dd if=/dev/kernel of=%sImagesUpload/.kernel/flash-kernel-%s.bin' % (getNeoLocation(), getBoxHostName()) )
|
||||
os.system('mv ' + LinkNeoBoot + '/tmpfiles/target/h7s_kernel.sh ' + LinkNeoBoot + '/files/kernel.sh;mv ' + LinkNeoBoot + '/tmpfiles/runpy/h7s_run.py ' + LinkNeoBoot + '/run.py; cd')
|
||||
|
||||
elif getCPUSoC() == 'bcm7251s' or getBoxHostName() == 'h7':
|
||||
os.system('opkg install --force-maintainer --force-reinstall --force-overwrite --force-downgrade kernel-image;cp -f /tmp/findkerneldevice.py ' + LinkNeoBoot + '/files/findkerneldevice.py; dd if=/dev/kernel of=%sImagesUpload/.kernel/flash-kernel-%s.bin' % (getNeoLocation(), getBoxHostName()) )
|
||||
if fileExists('/tmp/findkerneldevice.py'):
|
||||
os.sytem('cp -fr /tmp/findkerneldevice.py ' + LinkNeoBoot + '/files/findkerneldevice.py; ')
|
||||
else:
|
||||
os.sytem('mv ' + LinkNeoBoot + '/tmpfiles/runpy/findustym.py ' + LinkNeoBoot + '/files/findkerneldevice.py')
|
||||
os.system('cp -Rf ' + LinkNeoBoot + '/bin/neoinitarm /sbin/neoinitarm')
|
||||
os.system('chmod 0755 /sbin/neoinitarm; ln -sfn /sbin/neoinitarm /sbin/init')
|
||||
os.system('cp -Rf ' + LinkNeoBoot + '/bin/neoinitarm /sbin/neoinitarm; cd')
|
||||
os.system('mv ' + LinkNeoBoot + '/tmpfiles/target/h7s_kernel.sh ' + LinkNeoBoot + '/files/kernel.sh; mv /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/tmpfiles/runpy/target/h7s_run.py /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/run.py; cd')
|
||||
|
||||
elif getCPUSoC() or getBoxHostName() == ['7444s',
|
||||
'7252s',
|
||||
'7376',
|
||||
@@ -954,20 +981,25 @@ class NeoBootImageChoose(Screen):
|
||||
os.system('cd ' + LinkNeoBoot + ';curl -O --ftp-ssl https://raw.githubusercontent.com/gutosie/NeoBoot-9/master/ver.txt;sleep 3;cd /')
|
||||
if not fileExists('' + LinkNeoBoot + '/ver.txt'):
|
||||
os.system('cd ' + LinkNeoBoot + ';fullwget --no-check-certificate https://raw.githubusercontent.com/gutosie/NeoBoot-9/master/ver.txt; sleep 3;cd /')
|
||||
if not fileExists('' + LinkNeoBoot + '/ver.txt'):
|
||||
self.session.open(MessageBox, _('Unfortunately, at the moment not found an update, try again later.'), MessageBox.TYPE_INFO, 8)
|
||||
if fileExists('' + LinkNeoBoot + '/ver.txt'):
|
||||
mypath = ''
|
||||
version = open('' + LinkNeoBoot + '/ver.txt', 'r')
|
||||
mypath = float(version.read().strip())
|
||||
version.close()
|
||||
if float(UPDATEVERSION) != mypath:
|
||||
message = _('NeoBoot has detected update.\nDo you want to update NeoBoota now ?')
|
||||
ybox = self.session.openWithCallback(self.aktualizacjamboot, MessageBox, message, MessageBox.TYPE_YESNO)
|
||||
ybox.setTitle(_('Updating ... '))
|
||||
elif fileExists('' + LinkNeoBoot + '/ver.txt'):
|
||||
os.system('rm ' + LinkNeoBoot + '/ver.txt')
|
||||
if fileExists('' + LinkNeoBoot + '/wget-log'):
|
||||
os.system('rm ' + LinkNeoBoot + '/wget-log')
|
||||
self.session.open(MessageBox, _('Updated unnecessary, you have the latest version. Please try again later.'), MessageBox.TYPE_INFO)
|
||||
else:
|
||||
self.session.open(MessageBox, _('Unfortunately, at the moment not found an update, try again later.'), MessageBox.TYPE_INFO, 10)
|
||||
else:
|
||||
mypath = ''
|
||||
version = open('' + LinkNeoBoot + '/ver.txt', 'r')
|
||||
mypath = float(version.read().strip())
|
||||
version.close()
|
||||
if float(UPDATEVERSION) != mypath:
|
||||
message = _('NeoBoot has detected update.\nDo you want to update NeoBoota now ?')
|
||||
ybox = self.session.openWithCallback(self.aktualizacjamboot, MessageBox, message, MessageBox.TYPE_YESNO)
|
||||
ybox.setTitle(_('Updating ... '))
|
||||
elif fileExists('' + LinkNeoBoot + '/ver.txt'):
|
||||
os.system('rm ' + LinkNeoBoot + '/ver.txt')
|
||||
self.session.open(MessageBox, _('Updated unnecessary, you have the latest version. Please try again later.'), MessageBox.TYPE_INFO)
|
||||
if not fileExists('' + LinkNeoBoot + '/ver.txt'):
|
||||
self.session.open(MessageBox, _('Unfortunately, at the moment not found an update, try again later.'), MessageBox.TYPE_INFO, 10)
|
||||
|
||||
def aktualizacjamboot(self, yesno):
|
||||
if yesno:
|
||||
@@ -1251,7 +1283,13 @@ class NeoBootImageChoose(Screen):
|
||||
'ustym4kpro'
|
||||
'h3'
|
||||
'formuler4turbo'
|
||||
'formuler3']:
|
||||
'formuler3',
|
||||
'tmtwin4k',
|
||||
'anadol4k',
|
||||
'protek4k',
|
||||
'maxytecmulti',
|
||||
'force3uhd',
|
||||
'viper4k ']:
|
||||
self.extractImage()
|
||||
else:
|
||||
self.messagebox = self.session.open(MessageBox, _('The tuner is not supported by NeoBoot.\nContact the author.\nNo proper STB for installation !!!!'), MessageBox.TYPE_INFO, 8)
|
||||
@@ -1381,7 +1419,7 @@ def checkInternet():
|
||||
|
||||
def checkimage():
|
||||
mycheck = False
|
||||
if not fileExists('/proc/stb/info') or not fileExists('' + LinkNeoBoot + '/neoskins/neo/neo_skin.py') or not fileExists('' + LinkNeoBoot + '/tmpfiles') or not fileExists('' + LinkNeoBoot + '/usedskin.pyo') or not fileExists('/etc/neo'):
|
||||
if not fileExists('/proc/stb/info') or not fileExists('' + LinkNeoBoot + '/neoskins/neo/neo_skin.py') or not fileExists('' + LinkNeoBoot + '/bin/neoinitarm'):
|
||||
mycheck = False
|
||||
else:
|
||||
mycheck = True
|
||||
|
||||
Reference in New Issue
Block a user