2.11
This commit is contained in:
@@ -118,7 +118,12 @@ def NEOBootMainEx(source, target, CopyFiles, CopyKernel, TvList, Montowanie, Lan
|
|||||||
#arm Zgemma h7
|
#arm Zgemma h7
|
||||||
elif getCPUSoC() == 'bcm7251s' or getBoxHostName() == 'h7':
|
elif getCPUSoC() == 'bcm7251s' or getBoxHostName() == 'h7':
|
||||||
os.system('mv /media/neoboot/ImagesUpload/zgemma/' + getBoxHostName() + '/kernel.bin ' + media_target + '/boot/zImage.' + getBoxHostName() + '' + dev_null)
|
os.system('mv /media/neoboot/ImagesUpload/zgemma/' + getBoxHostName() + '/kernel.bin ' + media_target + '/boot/zImage.' + getBoxHostName() + '' + dev_null)
|
||||||
os.system('echo "Skopiowano kernel.bin STB-ARM Zgemma h7."')
|
os.system('echo "Skopiowano kernel.bin STB-ARM Zgemma h7."')
|
||||||
|
#arm gbquad4k
|
||||||
|
elif getCPUSoC() == 'bcm7252s' or getBoxHostName() == 'gbquad4k':
|
||||||
|
os.system('mv /media/neoboot/ImagesUpload/gigablue/quad4k' + getBoxHostName() + '/kernel.bin ' + media_target + '/boot/zImage.' + getBoxHostName() + '' + dev_null)
|
||||||
|
os.system('echo "Skopiowano kernel.bin STB-ARM gbquad4k."')
|
||||||
|
|
||||||
#arm vuplus
|
#arm vuplus
|
||||||
elif getCPUSoC() == '7444s' or getCPUSoC() == '7278' or getCPUSoC() == '7376' or getCPUSoC() == '7252s' or getCPUSoC() == '72604':
|
elif getCPUSoC() == '7444s' or getCPUSoC() == '7278' or getCPUSoC() == '7376' or getCPUSoC() == '7252s' or getCPUSoC() == '72604':
|
||||||
os.system('mv /media/neoboot/ImagesUpload/vuplus/' + getBoxVuModel() + '/kernel_auto.bin ' + media_target + '/boot/zImage.' + getBoxVuModel() + '' + dev_null)
|
os.system('mv /media/neoboot/ImagesUpload/vuplus/' + getBoxVuModel() + '/kernel_auto.bin ' + media_target + '/boot/zImage.' + getBoxVuModel() + '' + dev_null)
|
||||||
@@ -208,22 +213,28 @@ def NEOBootMainEx(source, target, CopyFiles, CopyKernel, TvList, Montowanie, Lan
|
|||||||
rc = os.system(cmd)
|
rc = os.system(cmd)
|
||||||
|
|
||||||
if LanWlan == 'True':
|
if LanWlan == 'True':
|
||||||
os.system('echo "Skopiowano pliki sieciowe LAN-WLAN."')
|
if os.path.exists('%s/ImageBoot/%s/etc/vtiversion.info' % (media, target)):
|
||||||
if os.path.exists('/etc/wpa_supplicant.wlan0.conf'):
|
os.system('echo "Nie skopiowano LAN-WLAN, nie zalecane dla tego image."')
|
||||||
cmd = 'cp -Rpf /etc/wpa_supplicant.wlan0.conf %s/ImageBoot/%s/etc/wpa_supplicant.wlan0.conf > /dev/null 2>&1' % (media, target)
|
if os.path.exists('/etc/vtiversion.info') and os.path.exists('%s/usr/lib/enigma2/python/Plugins/PLi' % (media, target)):
|
||||||
rc = os.system(cmd)
|
os.system('echo "Nie skopiowano LAN-WLAN, nie zalecane dla tego image."')
|
||||||
if os.path.exists('/etc/network/interfaces'):
|
if os.path.exists('/etc/bhversion') and os.path.exists('%s/usr/lib/enigma2/python/Plugins/PLi' % (media, target)):
|
||||||
cmd = 'cp -r /etc/network/interfaces %s/ImageBoot/%s/etc/network/interfaces > /dev/null 2>&1' % (media, target)
|
os.system('echo "Nie skopiowano LAN-WLAN, nie zalecane dla tego image."')
|
||||||
rc = os.system(cmd)
|
else:
|
||||||
if os.path.exists('/etc/wpa_supplicant.conf'):
|
if os.path.exists('/etc/wpa_supplicant.wlan0.conf'):
|
||||||
cmd = 'cp -Rpf /etc/wpa_supplicant.conf %s/ImageBoot/%s/etc/wpa_supplicant.conf > /dev/null 2>&1' % (media, target)
|
cmd = 'cp -Rpf /etc/wpa_supplicant.wlan0.conf %s/ImageBoot/%s/etc/wpa_supplicant.wlan0.conf > /dev/null 2>&1' % (media, target)
|
||||||
rc = os.system(cmd)
|
rc = os.system(cmd)
|
||||||
if os.path.exists('/etc/resolv.conf'):
|
if os.path.exists('/etc/network/interfaces'):
|
||||||
cmd = 'cp -Rpf /etc/resolv.conf %s/ImageBoot/%s/etc/resolv.conf > /dev/null 2>&1' % (media, target)
|
cmd = 'cp -r /etc/network/interfaces %s/ImageBoot/%s/etc/network/interfaces > /dev/null 2>&1' % (media, target)
|
||||||
rc = os.system(cmd)
|
rc = os.system(cmd)
|
||||||
if os.path.exists('/etc/wl.conf.wlan3'):
|
if os.path.exists('/etc/wpa_supplicant.conf'):
|
||||||
cmd = 'cp -r /etc/wl.conf.wlan3 %s/ImageBoot/%s/etc/wl.conf.wlan3 > /dev/null 2>&1' % (media, target)
|
cmd = 'cp -Rpf /etc/wpa_supplicant.conf %s/ImageBoot/%s/etc/wpa_supplicant.conf > /dev/null 2>&1' % (media, target)
|
||||||
rc = os.system(cmd)
|
rc = os.system(cmd)
|
||||||
|
if os.path.exists('/etc/resolv.conf'):
|
||||||
|
cmd = 'cp -Rpf /etc/resolv.conf %s/ImageBoot/%s/etc/resolv.conf > /dev/null 2>&1' % (media, target)
|
||||||
|
rc = os.system(cmd)
|
||||||
|
if os.path.exists('/etc/wl.conf.wlan3'):
|
||||||
|
cmd = 'cp -r /etc/wl.conf.wlan3 %s/ImageBoot/%s/etc/wl.conf.wlan3 > /dev/null 2>&1' % (media, target)
|
||||||
|
rc = os.system(cmd)
|
||||||
|
|
||||||
if Sterowniki == 'True':
|
if Sterowniki == 'True':
|
||||||
if os.path.exists('%s/ImageBoot/%s/lib/modules' % (media, target)):
|
if os.path.exists('%s/ImageBoot/%s/lib/modules' % (media, target)):
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
####################### _(-_-)_ gutosie _(-_-)_ #######################
|
||||||
####################### _(-_-)_ gutosie _(-_-)_ #######################
|
|
||||||
from __init__ import _
|
from __init__ import _
|
||||||
from Plugins.Extensions.NeoBoot.files import Harddisk
|
from Plugins.Extensions.NeoBoot.files import Harddisk
|
||||||
from Components.About import about
|
from Components.About import about
|
||||||
from Plugins.Extensions.NeoBoot.files.stbbranding import getFSTAB, getKernelVersionString, getKernelImageVersion, getCPUtype, getCPUSoC, getImageNeoBoot, getBoxVuModel, getBoxHostName, getTunerModel
|
from Plugins.Extensions.NeoBoot.files.stbbranding import getNeoMount, getFSTAB, getKernelVersionString, getKernelImageVersion, getCPUtype, getCPUSoC, getImageNeoBoot, getBoxVuModel, getBoxHostName, getTunerModel
|
||||||
from enigma import getDesktop
|
from enigma import getDesktop
|
||||||
from enigma import eTimer
|
from enigma import eTimer
|
||||||
from Screens.Screen import Screen
|
from Screens.Screen import Screen
|
||||||
@@ -45,8 +45,8 @@ import time
|
|||||||
# save this copyright notice. This document/program is distributed WITHOUT any
|
# save this copyright notice. This document/program is distributed WITHOUT any
|
||||||
# warranty, use at YOUR own risk.
|
# warranty, use at YOUR own risk.
|
||||||
|
|
||||||
PLUGINVERSION = '2.04'
|
PLUGINVERSION = '2.05'
|
||||||
UPDATEVERSION = '2.10'
|
UPDATEVERSION = '2.11'
|
||||||
|
|
||||||
class MyUpgrade(Screen):
|
class MyUpgrade(Screen):
|
||||||
screenwidth = getDesktop(0).size().width()
|
screenwidth = getDesktop(0).size().width()
|
||||||
@@ -937,14 +937,32 @@ valign="center" backgroundColor="black" transparent="1" foregroundColor="white"
|
|||||||
def __init__(self, session):
|
def __init__(self, session):
|
||||||
Screen.__init__(self, session)
|
Screen.__init__(self, session)
|
||||||
|
|
||||||
|
if not fileExists('/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/neo.sh'):
|
||||||
|
if getNeoMount() == 'neo_install_/dev/sda1':
|
||||||
|
#os.system('mkdir -p /media/neoboot2 ; mount /dev/sda1 /media/neoboot')
|
||||||
|
os.system('touch /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/neo.sh')
|
||||||
|
cel = open('/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/neo.sh', 'w')
|
||||||
|
cel.write('#!/bin/sh\n#DESCRIPTION=This script by gutosie\n\n/bin/mount /dev/sda1 /media/neoboot \n')
|
||||||
|
cel.close()
|
||||||
|
os.system('chmod 755 /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/neo.sh')
|
||||||
|
elif getNeoMount() == 'neo_install_/dev/sdb1':
|
||||||
|
#os.system('mkdir -p /media/neoboot2; mount /dev/sdb1 /media/neoboot2')
|
||||||
|
os.system('touch /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/neo.sh')
|
||||||
|
cel = open('/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/neo.sh', 'w')
|
||||||
|
cel.write('#!/bin/sh\n#DESCRIPTION=This script by gutosie\n\n/bin/mount /dev/sdb1 /media/neoboot \n')
|
||||||
|
cel.close()
|
||||||
|
os.system('chmod 0755 /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/neo.sh')
|
||||||
|
|
||||||
if fileExists('/tmp/.init_reboot'):
|
if fileExists('/tmp/.init_reboot'):
|
||||||
system('rm /tmp/.init_reboot')
|
system('rm /tmp/.init_reboot')
|
||||||
|
|
||||||
if fileExists('/.multinfo'):
|
if fileExists('/.multinfo'):
|
||||||
if fileExists('/.control_boot_new_image'):
|
if not fileExists('/.control_ok'):
|
||||||
os.system('rm -f /.control_boot_new_image; touch /.control_ok ')
|
if fileExists('/.control_boot_new_image'):
|
||||||
if not fileExists('/.control_boot_new_image'):
|
os.system('rm -f /.control_boot_new_image; echo "Image uruchomione OK\nNie kasuj tego pliku. \n\nImage started OK\nDo not delete this file." > /.control_ok ')
|
||||||
os.system('touch /.control_ok ')
|
if not fileExists('/.control_boot_new_image'):
|
||||||
|
os.system('echo "Image uruchomione OK\nNie kasuj tego pliku. \n\nImage started OK\nDo not delete this file." > /.control_ok')
|
||||||
|
#os.system('touch /.control_ok ')
|
||||||
|
|
||||||
if fileExists('/.multinfo') and getCPUtype() == 'ARMv7':
|
if fileExists('/.multinfo') and getCPUtype() == 'ARMv7':
|
||||||
if os.path.exists('/proc/stb/info/boxtype'):
|
if os.path.exists('/proc/stb/info/boxtype'):
|
||||||
@@ -1470,9 +1488,7 @@ valign="center" backgroundColor="black" transparent="1" foregroundColor="white"
|
|||||||
self.session.open(MessageBox, message, MessageBox.TYPE_INFO)
|
self.session.open(MessageBox, message, MessageBox.TYPE_INFO)
|
||||||
self.close()
|
self.close()
|
||||||
|
|
||||||
####################### _(-_-)_ gutosie _(-_-)_ #######################
|
|
||||||
|
|
||||||
|
|
||||||
def readline(filename, iferror = ''):
|
def readline(filename, iferror = ''):
|
||||||
if iferror[:3] == 'or:':
|
if iferror[:3] == 'or:':
|
||||||
data = iferror[3:]
|
data = iferror[3:]
|
||||||
@@ -1487,13 +1503,14 @@ def readline(filename, iferror = ''):
|
|||||||
PrintException()
|
PrintException()
|
||||||
return data
|
return data
|
||||||
|
|
||||||
|
|
||||||
def checkimage():
|
def checkimage():
|
||||||
mycheck = False
|
mycheck = False
|
||||||
if fileExists('/proc/stb/info'): #vumodel'): ogranicza tylko dla vu+
|
if fileExists('/proc/stb/info'): #vumodel'): ogranicza tylko dla vu+
|
||||||
mycheck = True
|
mycheck = True
|
||||||
else:
|
else:
|
||||||
mycheck = False
|
mycheck = False
|
||||||
return mycheck
|
return mycheck
|
||||||
|
|
||||||
|
|
||||||
def checkversion(session):
|
def checkversion(session):
|
||||||
@@ -1512,33 +1529,51 @@ def checkversion(session):
|
|||||||
else:
|
else:
|
||||||
session.open(NeoBootImageChoose)
|
session.open(NeoBootImageChoose)
|
||||||
else:
|
else:
|
||||||
session.open(MessageBox, _('Sorry: Wrong image in flash found. You have to install in flash image for you stb !!!'), MessageBox.TYPE_INFO, 10)
|
session.open(MessageBox, _('Sorry: Wrong image in flash found.\n You have to install in flash image for you stb !!!'), MessageBox.TYPE_INFO, 10)
|
||||||
|
|
||||||
|
if fileExists('/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location'):
|
||||||
|
if fileExists('/media/neoboot/ImgeBoot/.neonextboot'):
|
||||||
|
session.open(NeoBootImageChoose)
|
||||||
else:
|
else:
|
||||||
session.open(NeoBootInstallation)
|
session.open(NeoBootInstallation)
|
||||||
|
|
||||||
|
|
||||||
def main(session, **kwargs):
|
def main(session, **kwargs):
|
||||||
try:
|
if getNeoMount() == 'neo_install_/dev/sda1':
|
||||||
f = open('/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location', 'r')
|
session.open(NeoBootImageChoose)
|
||||||
mypath = f.readline().strip()
|
elif getNeoMount() == 'neo_install_/dev/sdb1':
|
||||||
f.close()
|
session.open(NeoBootImageChoose)
|
||||||
if not os.path.exists('/media/neoboot'):
|
else:
|
||||||
system('mkdir /media/neoboot')
|
main2(session)
|
||||||
cmd = 'mount ' + mypath + ' /media/neoboot'
|
|
||||||
system(cmd)
|
|
||||||
f = open('/proc/mounts', 'r')
|
|
||||||
for line in f.readlines():
|
|
||||||
if line.find('/media/neoboot') != -1:
|
|
||||||
line = line[0:9]
|
|
||||||
break
|
|
||||||
|
|
||||||
cmd = 'mount ' + line + ' ' + mypath
|
def main2(session, **kwargs):
|
||||||
system(cmd)
|
if not fileExists('/media/neoboot/ImgeBoot/.neonextboot'):
|
||||||
cmd = 'mount ' + mypath + ' /media/neoboot'
|
try:
|
||||||
system(cmd)
|
f = open('/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location', 'r')
|
||||||
except:
|
mypath = f.readline().strip()
|
||||||
pass
|
f.close()
|
||||||
|
if not fileExists('/media/neoboot'):
|
||||||
|
os.mkdir('/media/neoboot')
|
||||||
|
cmd = 'mount ' + mypath + ' /media/neoboot'
|
||||||
|
os.system(cmd)
|
||||||
|
f = open('/proc/mounts', 'r')
|
||||||
|
for line in f.readlines():
|
||||||
|
if line.find('/media/neoboot') != -1:
|
||||||
|
line = line[0:9]
|
||||||
|
break
|
||||||
|
|
||||||
checkversion(session)
|
cmd = 'mount ' + line + ' ' + mypath
|
||||||
|
os.system(cmd)
|
||||||
|
cmd = 'mount ' + mypath + ' /media/neoboot'
|
||||||
|
os.system(cmd)
|
||||||
|
else:
|
||||||
|
pass
|
||||||
|
checkversion(session)
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
checkversion(session)
|
||||||
|
else:
|
||||||
|
checkversion(session)
|
||||||
|
|
||||||
|
|
||||||
def menu(menuid, **kwargs):
|
def menu(menuid, **kwargs):
|
||||||
|
|||||||
@@ -94,9 +94,10 @@ class StartImage(Screen):
|
|||||||
self.StartImageInNeoBoot()
|
self.StartImageInNeoBoot()
|
||||||
|
|
||||||
def StartImageInNeoBoot(self):
|
def StartImageInNeoBoot(self):
|
||||||
if fileExists('/media/neoboot/ImageBoot/%s/.control_ok' % ( getImageNeoBoot())):
|
if getImageNeoBoot() != 'Flash':
|
||||||
system('touch /tmp/.control_ok ')
|
if fileExists('/media/neoboot/ImageBoot/%s/.control_ok' % ( getImageNeoBoot())):
|
||||||
else:
|
system('touch /tmp/.control_ok ')
|
||||||
|
else:
|
||||||
system('touch /media/neoboot/ImageBoot/%s/.control_boot_new_image ' % ( getImageNeoBoot()))
|
system('touch /media/neoboot/ImageBoot/%s/.control_boot_new_image ' % ( getImageNeoBoot()))
|
||||||
|
|
||||||
system('chmod 755 /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/target/*')
|
system('chmod 755 /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/target/*')
|
||||||
@@ -144,7 +145,7 @@ class StartImage(Screen):
|
|||||||
restartbox = self.session.openWithCallback(self.selectboot, MessageBox, _('Wybierz Tak, start image z podmiana kernel lub Nie bez wczytywania kernel.\n Zmiana kernel zalecane dla vuplus.'), MessageBox.TYPE_YESNO)
|
restartbox = self.session.openWithCallback(self.selectboot, MessageBox, _('Wybierz Tak, start image z podmiana kernel lub Nie bez wczytywania kernel.\n Zmiana kernel zalecane dla vuplus.'), MessageBox.TYPE_YESNO)
|
||||||
restartbox.setTitle(_('Full restart GUI now ?'))
|
restartbox.setTitle(_('Full restart GUI now ?'))
|
||||||
|
|
||||||
elif getCPUtype() == 'ARMv7' and getCPUSoC() == 'bcm7251s' or getBoxHostName() == 'h7'or getCPUSoC() == 'bcm7251' or getBoxHostName() == 'sf4008' or getCPUSoC() == '7278' or getBoxHostName() == 'vuduo4k' or getCPUSoC() == '72604' or getBoxHostName() == 'vuzero4k' or getCPUSoC() == '7444s' or getBoxHostName() == 'vuultimo4k' or getCPUSoC() == '7376' or getBoxHostName() == 'vusolo4k' or getCPUSoC() == '7252s' or getBoxHostName() == 'vuuno4kse':
|
elif getCPUtype() == 'ARMv7' and getCPUSoC() == 'bcm7252s' or getBoxHostName() == 'gbquad4k' or getCPUSoC() == 'bcm7251s' or getBoxHostName() == 'h7'or getCPUSoC() == 'bcm7251' or getBoxHostName() == 'sf4008' or getCPUSoC() == '7278' or getBoxHostName() == 'vuduo4k' or getCPUSoC() == '72604' or getBoxHostName() == 'vuzero4k' or getCPUSoC() == '7444s' or getBoxHostName() == 'vuultimo4k' or getCPUSoC() == '7376' or getBoxHostName() == 'vusolo4k' or getCPUSoC() == '7252s' or getBoxHostName() == 'vuuno4kse':
|
||||||
restartbox = self.session.openWithCallback(self.selectboot, MessageBox, _('Wybierz:\n Tak - start image z podmiana kernel (zalecane dla VUPLUS.)\n\nWybierz:\nNie - bez wgrywania kernel( Nie zalecane).\n '), MessageBox.TYPE_YESNO)
|
restartbox = self.session.openWithCallback(self.selectboot, MessageBox, _('Wybierz:\n Tak - start image z podmiana kernel (zalecane dla VUPLUS.)\n\nWybierz:\nNie - bez wgrywania kernel( Nie zalecane).\n '), MessageBox.TYPE_YESNO)
|
||||||
restartbox.setTitle(_('Full restart GUI now ?'))
|
restartbox.setTitle(_('Full restart GUI now ?'))
|
||||||
|
|
||||||
@@ -199,7 +200,7 @@ class StartImage(Screen):
|
|||||||
self.session.open(Console, _('NeoBoot ARM VU+....'), [cmd, cmd1])
|
self.session.open(Console, _('NeoBoot ARM VU+....'), [cmd, cmd1])
|
||||||
self.close()
|
self.close()
|
||||||
|
|
||||||
elif getCPUSoC() == 'bcm7251' or getBoxHostName() == 'sf4008' or getCPUSoC() == 'bcm7251s' or getBoxHostName() == 'h7':
|
elif getCPUSoC() == 'bcm7252s' or getBoxHostName() == 'gbquad4k' or getCPUSoC() == 'bcm7251' or getBoxHostName() == 'sf4008' or getCPUSoC() == 'bcm7251s' or getBoxHostName() == 'h7':
|
||||||
if getImageNeoBoot() == 'Flash':
|
if getImageNeoBoot() == 'Flash':
|
||||||
if fileExists('/.multinfo'):
|
if fileExists('/.multinfo'):
|
||||||
cmd = "echo -e '\n\n%s '" % _('NEOBOOT - Restart image flash....\nPlease wait, in a moment the decoder will be restarted...')
|
cmd = "echo -e '\n\n%s '" % _('NEOBOOT - Restart image flash....\nPlease wait, in a moment the decoder will be restarted...')
|
||||||
@@ -270,7 +271,7 @@ class StartImage(Screen):
|
|||||||
if getImageNeoBoot() == 'Flash':
|
if getImageNeoBoot() == 'Flash':
|
||||||
if fileExists('/.multinfo'):
|
if fileExists('/.multinfo'):
|
||||||
cmd = "echo -e '\n\n%s '" % _('NEOBOOT - Restart image flash....\nPlease wait, in a moment the decoder will be restarted...')
|
cmd = "echo -e '\n\n%s '" % _('NEOBOOT - Restart image flash....\nPlease wait, in a moment the decoder will be restarted...')
|
||||||
cmd1 = 'cd /media/mmc; ln -sf "init.sysvinit" "/media/mmc/sbin/init"; /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/target/h7s_mmcblk0p2.sh '
|
cmd1 = 'cd /media/mmc; ln -sf "init.sysvinit" "/media/mmc/sbin/init"; /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/target/h7s_kernel.sh '
|
||||||
|
|
||||||
elif not fileExists('/.multinfo'):
|
elif not fileExists('/.multinfo'):
|
||||||
cmd = "echo -e '\n\n%s '" % _('NEOBOOT - Restart image flash....\nPlease wait, in a moment the decoder will be restarted...')
|
cmd = "echo -e '\n\n%s '" % _('NEOBOOT - Restart image flash....\nPlease wait, in a moment the decoder will be restarted...')
|
||||||
@@ -284,7 +285,7 @@ class StartImage(Screen):
|
|||||||
|
|
||||||
elif fileExists('/media/neoboot/ImageBoot/%s/boot/zImage.%s' % ( getImageNeoBoot(), getBoxHostName())):
|
elif fileExists('/media/neoboot/ImageBoot/%s/boot/zImage.%s' % ( getImageNeoBoot(), getBoxHostName())):
|
||||||
cmd = "echo -e '\n\n%s '" % _('NEOBOOT - Restart image flash....\nPlease wait, in a moment the decoder will be restarted...')
|
cmd = "echo -e '\n\n%s '" % _('NEOBOOT - Restart image flash....\nPlease wait, in a moment the decoder will be restarted...')
|
||||||
cmd1 = 'ln -sfn /sbin/neoinitarm /sbin/init; /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/target/h7s_mmcblk0p2.sh '
|
cmd1 = 'ln -sfn /sbin/neoinitarm /sbin/init; /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/target/h7s_kernel.sh '
|
||||||
|
|
||||||
elif fileExists('/.multinfo'):
|
elif fileExists('/.multinfo'):
|
||||||
if not fileExists('/media/neoboot/ImageBoot/%s/boot/zImage.%s' % ( getImageNeoBoot(), getBoxHostName())):
|
if not fileExists('/media/neoboot/ImageBoot/%s/boot/zImage.%s' % ( getImageNeoBoot(), getBoxHostName())):
|
||||||
@@ -293,11 +294,54 @@ class StartImage(Screen):
|
|||||||
|
|
||||||
elif fileExists('/media/neoboot/ImageBoot/%s/boot/zImage.%s' % ( getImageNeoBoot(), getBoxHostName())):
|
elif fileExists('/media/neoboot/ImageBoot/%s/boot/zImage.%s' % ( getImageNeoBoot(), getBoxHostName())):
|
||||||
cmd = "echo -e '\n\n%s '" % _('NEOBOOT - Restart image flash....\nPlease wait, in a moment the decoder will be restarted...')
|
cmd = "echo -e '\n\n%s '" % _('NEOBOOT - Restart image flash....\nPlease wait, in a moment the decoder will be restarted...')
|
||||||
cmd1 = 'cd /media/mmc; ln -sf "neoinitarm" "/media/mmc/sbin/init"; /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/target/h7s_mmcblk0p2.sh '
|
cmd1 = 'cd /media/mmc; ln -sf "neoinitarm" "/media/mmc/sbin/init"; /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/target/h7s_kernel.sh '
|
||||||
|
|
||||||
self.session.open(Console, _('NeoBoot ARM....'), [cmd, cmd1])
|
self.session.open(Console, _('NeoBoot ARM....'), [cmd, cmd1])
|
||||||
self.close()
|
self.close()
|
||||||
|
|
||||||
|
|
||||||
|
def bootimageARM(self):
|
||||||
|
#gbquad4k ARM ARM gbquad4k_kernel.sh
|
||||||
|
if getCPUSoC() == 'bcm7252s' or getBoxHostName() == 'gbquad4k':
|
||||||
|
if not fileExists('/media/neoboot/ImagesUpload/.kernel/zImage.%s.ipk' % ( getBoxHostName()) ):
|
||||||
|
self.myclose2(_('#############>>>>>>>>>\n\n\nError - w lokalizacji /media/neoboot/ImagesUpload/.kernel/ \nnie odnaleziono pliku kernela zImage.%s.ipk ' % ( getBoxHostName()) ))
|
||||||
|
elif not fileExists('/media/neoboot/ImagesUpload/.kernel/flash-kernel-%s.bin' % ( getBoxHostName()) ):
|
||||||
|
self.myclose2(_('\n\n\nError - w lokalizacji /media/neoboot/ImagesUpload/.kernel/ \nnie odnaleziono pliku kernela flash-kernel-%s.bin ' % ( getBoxHostName()) ))
|
||||||
|
else:
|
||||||
|
if getImageNeoBoot() == 'Flash':
|
||||||
|
if fileExists('/.multinfo'):
|
||||||
|
cmd = "echo -e '\n\n%s '" % _('NEOBOOT - Restart image flash....\nPlease wait, in a moment the decoder will be restarted...')
|
||||||
|
cmd1 = 'cd /media/mmc; ln -sf "init.sysvinit" "/media/mmc/sbin/init"; /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/target/gbquad4k_kernel.sh '
|
||||||
|
|
||||||
|
elif not fileExists('/.multinfo'):
|
||||||
|
cmd = "echo -e '\n\n%s '" % _('NEOBOOT - Restart image flash....\nPlease wait, in a moment the decoder will be restarted...')
|
||||||
|
cmd1 = 'ln -sf "init.sysvinit" "/sbin/init"; /etc/init.d/reboot'
|
||||||
|
|
||||||
|
elif getImageNeoBoot() != 'Flash':
|
||||||
|
if not fileExists('/.multinfo'):
|
||||||
|
if not fileExists('/media/neoboot/ImageBoot/%s/boot/zImage.%s' % ( getImageNeoBoot(), getBoxHostName())):
|
||||||
|
cmd = "echo -e '\n\n%s '" % _('NEOBOOT - Restart image flash....\nPlease wait, in a moment the decoder will be restarted...')
|
||||||
|
cmd1 = 'ln -sfn /sbin/neoinitarm /sbin/init; /etc/init.d/reboot'
|
||||||
|
|
||||||
|
elif fileExists('/media/neoboot/ImageBoot/%s/boot/zImage.%s' % ( getImageNeoBoot(), getBoxHostName())):
|
||||||
|
cmd = "echo -e '\n\n%s '" % _('NEOBOOT - Restart image flash....\nPlease wait, in a moment the decoder will be restarted...')
|
||||||
|
cmd1 = 'ln -sfn /sbin/neoinitarm /sbin/init; /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/target/gbquad4k_kernel.sh '
|
||||||
|
|
||||||
|
elif fileExists('/.multinfo'):
|
||||||
|
if not fileExists('/media/neoboot/ImageBoot/%s/boot/zImage.%s' % ( getImageNeoBoot(), getBoxHostName())):
|
||||||
|
cmd = "echo -e '\n\n%s '" % _('NEOBOOT - Restart image flash....\nPlease wait, in a moment the decoder will be restarted...')
|
||||||
|
cmd1 = 'python /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/target/findkerneldevice.py; dd if=/media/neoboot/ImagesUpload/.kernel/flash-kernel-%s.bin of=/dev/kernel; cp -fR /media/neoboot/ImagesUpload/.kernel/zImage.%s.ipk /tmp/zImage.ipk; opkg install --force-maintainer --force-reinstall --force-overwrite --force-downgrade /tmp/zImage.ipk; cd /media/mmc;ln -sf "neoinitarm" "/media/mmc/sbin/init"; reboot -f' % getBoxHostName(), getBoxHostName()
|
||||||
|
|
||||||
|
elif fileExists('/media/neoboot/ImageBoot/%s/boot/zImage.%s' % ( getImageNeoBoot(), getBoxHostName())):
|
||||||
|
cmd = "echo -e '\n\n%s '" % _('NEOBOOT - Restart image flash....\nPlease wait, in a moment the decoder will be restarted...')
|
||||||
|
cmd1 = 'cd /media/mmc; ln -sf "neoinitarm" "/media/mmc/sbin/init"; /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/target/gbquad4k_kernel.sh '
|
||||||
|
|
||||||
|
self.session.open(Console, _('NeoBoot ARM....'), [cmd, cmd1])
|
||||||
|
self.close()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#Octagon SF4008 ARM ARM - sf4008_mmcblk0p3.sh
|
#Octagon SF4008 ARM ARM - sf4008_mmcblk0p3.sh
|
||||||
elif getCPUSoC() == 'bcm7251' or getBoxHostName() == 'sf4008' :
|
elif getCPUSoC() == 'bcm7251' or getBoxHostName() == 'sf4008' :
|
||||||
if not fileExists('/media/neoboot/ImagesUpload/.kernel/zImage.%s.ipk' % ( getBoxHostName()) ):
|
if not fileExists('/media/neoboot/ImagesUpload/.kernel/zImage.%s.ipk' % ( getBoxHostName()) ):
|
||||||
@@ -335,7 +379,7 @@ class StartImage(Screen):
|
|||||||
|
|
||||||
self.session.open(Console, _('NeoBoot ARM....'), [cmd, cmd1])
|
self.session.open(Console, _('NeoBoot ARM....'), [cmd, cmd1])
|
||||||
self.close()
|
self.close()
|
||||||
|
|
||||||
#VUPLUS ARM - vu_mmcblk0p1.sh
|
#VUPLUS ARM - vu_mmcblk0p1.sh
|
||||||
elif getCPUSoC() == '7444s' or getBoxHostName() == 'vuultimo4k' or getCPUSoC() == '7376' or getBoxHostName() == 'vusolo4k' or getCPUSoC() == '7252s' or getBoxHostName() == 'vuuno4kse':
|
elif getCPUSoC() == '7444s' or getBoxHostName() == 'vuultimo4k' or getCPUSoC() == '7376' or getBoxHostName() == 'vusolo4k' or getCPUSoC() == '7252s' or getBoxHostName() == 'vuuno4kse':
|
||||||
if not fileExists('/media/neoboot/ImagesUpload/.kernel/zImage.%s.ipk' % ( getBoxVuModel()) ):
|
if not fileExists('/media/neoboot/ImagesUpload/.kernel/zImage.%s.ipk' % ( getBoxVuModel()) ):
|
||||||
|
|||||||
@@ -32,9 +32,10 @@ Octagon SF4008 : bcm7251
|
|||||||
Zgemma h7S : bcm7251s
|
Zgemma h7S : bcm7251s
|
||||||
Zgemma H9S :
|
Zgemma H9S :
|
||||||
|
|
||||||
AX HD60 4K : hi3798mv200 root@ax60:~# cat /etc/hostname : ax60
|
AX HD60 4K : hi3798mv200 # cat /etc/hostname : ax60
|
||||||
|
|
||||||
OSmini : BCM7362
|
OSmini : BCM7362
|
||||||
|
|
||||||
atemio6000 : bcm7362
|
atemio6000 : bcm7362
|
||||||
|
|
||||||
|
gbquad4k : bcm7252s # cat /proc/stb/info/model : gbquad4k # # cat /etc/hostname : gbquad4k # cat /proc/cmdline root=/dev/mmcblk0p5 rootwait rw rootflags=data=journal libata.force=1:3.0G,2:3.0G,3:3.0G coherent_poll=2M vmalloc=525m bmem=529m@491m bmem=608m@2464m
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ class InstallImage(Screen, ConfigListScreen):
|
|||||||
self.CopyKernel = ConfigYesNo(default=True)
|
self.CopyKernel = ConfigYesNo(default=True)
|
||||||
self.TvList = ConfigYesNo(default=True)
|
self.TvList = ConfigYesNo(default=True)
|
||||||
self.Montowanie = ConfigYesNo(default=True)
|
self.Montowanie = ConfigYesNo(default=True)
|
||||||
self.LanWlan = ConfigYesNo(default=True)
|
self.LanWlan = ConfigYesNo(default=False)
|
||||||
self.Sterowniki = ConfigYesNo(default=False)
|
self.Sterowniki = ConfigYesNo(default=False)
|
||||||
self.InstallSettings = ConfigYesNo(default=False)
|
self.InstallSettings = ConfigYesNo(default=False)
|
||||||
self.ZipDelete = ConfigYesNo(default=False)
|
self.ZipDelete = ConfigYesNo(default=False)
|
||||||
@@ -133,7 +133,7 @@ class InstallImage(Screen, ConfigListScreen):
|
|||||||
self.list.append(getConfigListEntry(_('Source Image file'), self.source))
|
self.list.append(getConfigListEntry(_('Source Image file'), self.source))
|
||||||
self.list.append(getConfigListEntry(_('Image Name'), self.target))
|
self.list.append(getConfigListEntry(_('Image Name'), self.target))
|
||||||
self.list.append(getConfigListEntry(_('Do not copy files from Flash to the installed image ?'), self.CopyFiles ))
|
self.list.append(getConfigListEntry(_('Do not copy files from Flash to the installed image ?'), self.CopyFiles ))
|
||||||
self.list.append(getConfigListEntry(_('Copy the kernel of the installed system (recommended only for Vu+) ?'), self.CopyKernel ))
|
self.list.append(getConfigListEntry(_('Copy the kernel of the installed system (recommended ?'), self.CopyKernel ))
|
||||||
self.list.append(getConfigListEntry(_('Copy the channel list ?'), self.TvList))
|
self.list.append(getConfigListEntry(_('Copy the channel list ?'), self.TvList))
|
||||||
self.list.append(getConfigListEntry(_('Copy mounting disks ? (Recommended)'), self.Montowanie))
|
self.list.append(getConfigListEntry(_('Copy mounting disks ? (Recommended)'), self.Montowanie))
|
||||||
self.list.append(getConfigListEntry(_('Copy network settings LAN-WLAN ?'), self.LanWlan))
|
self.list.append(getConfigListEntry(_('Copy network settings LAN-WLAN ?'), self.LanWlan))
|
||||||
@@ -273,7 +273,7 @@ class HelpInstall(Screen):
|
|||||||
message += _('Do not copy files from Flash to the installed image ?')
|
message += _('Do not copy files from Flash to the installed image ?')
|
||||||
message += _(' - po zaznaczeniu tej opcji nie zostanie nic skopiowane z image flash do instalowanego image w neoboot. \n\n')
|
message += _(' - po zaznaczeniu tej opcji nie zostanie nic skopiowane z image flash do instalowanego image w neoboot. \n\n')
|
||||||
|
|
||||||
message += _('Copy the kernel of the installed system (recommended only for Vu+) ?')
|
message += _('Copy the kernel of the installed system (recommended ) ?')
|
||||||
message += _(' - po zaznaczeniu tej opcji zostanie skopiowany plik jądra (kernel) instalowanego image do neoboota, zalecane tylko dla STB vuplus \n\n')
|
message += _(' - po zaznaczeniu tej opcji zostanie skopiowany plik jądra (kernel) instalowanego image do neoboota, zalecane tylko dla STB vuplus \n\n')
|
||||||
|
|
||||||
message += _('Copy the channel list ?')
|
message += _('Copy the channel list ?')
|
||||||
|
|||||||
Reference in New Issue
Block a user