zgemmah9s
This commit is contained in:
@@ -46,7 +46,7 @@ import time
|
|||||||
# warranty, use at YOUR own risk.
|
# warranty, use at YOUR own risk.
|
||||||
|
|
||||||
PLUGINVERSION = '2.05'
|
PLUGINVERSION = '2.05'
|
||||||
UPDATEVERSION = '2.12'
|
UPDATEVERSION = '2.13'
|
||||||
|
|
||||||
class MyUpgrade(Screen):
|
class MyUpgrade(Screen):
|
||||||
screenwidth = getDesktop(0).size().width()
|
screenwidth = getDesktop(0).size().width()
|
||||||
@@ -689,6 +689,15 @@ class NeoBootInstallation(Screen):
|
|||||||
os.system('python /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/target/findkerneldevice.py')
|
os.system('python /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/target/findkerneldevice.py')
|
||||||
os.system('dd if=/dev/kernel of=/media/neoboot/ImagesUpload/.kernel/flash-kernel-%s.bin' % getBoxHostName())
|
os.system('dd if=/dev/kernel of=/media/neoboot/ImagesUpload/.kernel/flash-kernel-%s.bin' % getBoxHostName())
|
||||||
|
|
||||||
|
#Zgemma h9 arm
|
||||||
|
elif getCPUSoC() == 'hi3798mv200' or getBoxHostName() == 'zgemmah9s':
|
||||||
|
os.system('cd /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/' )
|
||||||
|
os.system('cp -Rf /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/bin/neoinitarm /sbin/neoinitarm; cd')
|
||||||
|
os.system('chmod 755 /sbin/neoinitarm; chmod 755 /sbin/neoinitarm')
|
||||||
|
os.system('opkg download kernel-image')
|
||||||
|
os.system('mv /home/root/*.ipk /media/neoboot/ImagesUpload/.kernel/zImage.%s.ipk' % getBoxHostName())
|
||||||
|
os.system('dd if=/dev/mmcblk0p6 of=/media/neoboot/ImagesUpload/.kernel/flash-kernel-%s.bin' % getBoxHostName())
|
||||||
|
|
||||||
#gbquad4k arm
|
#gbquad4k arm
|
||||||
elif getCPUSoC() == 'bcm7252s' or getBoxHostName() == 'gbquad4k':
|
elif getCPUSoC() == 'bcm7252s' or getBoxHostName() == 'gbquad4k':
|
||||||
os.system('cd /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/' )
|
os.system('cd /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/' )
|
||||||
@@ -749,7 +758,7 @@ class NeoBootInstallation(Screen):
|
|||||||
os.system('opkg download kernel-image; sleep 2; mv /home/root/*.ipk /media/neoboot/ImagesUpload/.kernel/zImage.%s.ipk' % getBoxVuModel())
|
os.system('opkg download kernel-image; sleep 2; mv /home/root/*.ipk /media/neoboot/ImagesUpload/.kernel/zImage.%s.ipk' % getBoxVuModel())
|
||||||
|
|
||||||
#OctagonSF4008 - DM900 - Zgemma h7S - Octagon sf 8008 - AX HD60 4K
|
#OctagonSF4008 - DM900 - Zgemma h7S - Octagon sf 8008 - AX HD60 4K
|
||||||
elif getCPUSoC() == 'hi3798mv200' or getBoxHostName() == 'ax60' or getCPUSoC() == '3798mv200' or getBoxHostName() == 'sf8008' or getCPUSoC() == 'bcm7251' or getCPUSoC() == 'bcm7251s' or getBoxHostName() == 'h7' or getCPUSoC() == 'BCM97252SSFF' or getBoxHostName() == 'dm900':
|
elif getCPUSoC() == 'hi3798mv200' or getBoxHostName() == 'zgemmah9s' or getCPUSoC() == 'hi3798mv200' or getBoxHostName() == 'ax60' or getCPUSoC() == '3798mv200' or getBoxHostName() == 'sf8008' or getCPUSoC() == 'bcm7251' or getCPUSoC() == 'bcm7251s' or getBoxHostName() == 'h7' or getCPUSoC() == 'BCM97252SSFF' or getBoxHostName() == 'dm900':
|
||||||
os.system('cp -f /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/bin/neoinitarm /sbin/neoinitarm; chmod 0755 /sbin/neoinitarm; ln -sfn /sbin/neoinitarm /sbin/init')
|
os.system('cp -f /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/bin/neoinitarm /sbin/neoinitarm; chmod 0755 /sbin/neoinitarm; ln -sfn /sbin/neoinitarm /sbin/init')
|
||||||
|
|
||||||
else:
|
else:
|
||||||
@@ -1019,6 +1028,10 @@ valign="center" backgroundColor="black" transparent="1" foregroundColor="white"
|
|||||||
if getCPUSoC() == 'bcm7251s' or getBoxHostName() == 'h7':
|
if getCPUSoC() == 'bcm7251s' or getBoxHostName() == 'h7':
|
||||||
os.system('mkdir -p /media/mmc; mount /dev/mmcblk0p3 /media/mmc')
|
os.system('mkdir -p /media/mmc; mount /dev/mmcblk0p3 /media/mmc')
|
||||||
|
|
||||||
|
if os.path.exists('/proc/stb/info/boxtype'):
|
||||||
|
if getCPUSoC() == 'hi3798mv200' or getBoxHostName() == 'zgemmah9s':
|
||||||
|
os.system('mkdir -p /media/mmc; mount /dev/mmcblk0p7 /media/mmc')
|
||||||
|
|
||||||
if getCPUSoC() == '3798mv200' or getBoxHostName == 'sf8008':
|
if getCPUSoC() == '3798mv200' or getBoxHostName == 'sf8008':
|
||||||
os.system('mkdir -p /media/mmc; mount /dev/mmcblk0p13 /media/mmc')
|
os.system('mkdir -p /media/mmc; mount /dev/mmcblk0p13 /media/mmc')
|
||||||
|
|
||||||
@@ -1472,7 +1485,7 @@ valign="center" backgroundColor="black" transparent="1" foregroundColor="white"
|
|||||||
def ImageInstall(self):
|
def ImageInstall(self):
|
||||||
if not fileExists('/.multinfo'):
|
if not fileExists('/.multinfo'):
|
||||||
KERNEL_VERSION = getKernelVersionString()
|
KERNEL_VERSION = getKernelVersionString()
|
||||||
if getBoxHostName == 'osmio4k' or getCPUSoC() == 'bcm7252s' or getBoxHostName() == 'gbquad4k' or getCPUSoC() == 'hi3798mv200' or getBoxHostName == 'ax60' or getCPUSoC() == '3798mv200' or getBoxHostName() == 'sf8008' or getCPUSoC() == 'bcm7251' or getBoxHostName() == 'sf4008' or getCPUSoC() == 'bcm7251s' or getCPUSoC() == '7241' or getBoxHostName() == 'h7' or getBoxHostName() == 'dm900' or getCPUSoC() == 'BCM97252SSFF' or getCPUSoC() == '7444s' or getCPUSoC() == '7252s' or getCPUSoC() == '7376' or getCPUSoC() == '72604' or getCPUSoC() == '7278' or getCPUSoC() == '7335' or getCPUSoC() == '7413' or getCPUSoC() == '7325' or getCPUSoC() == '7356' or getCPUSoC() == 'bcm7356' or getCPUSoC() == '7429' or getCPUSoC() == '7424' or getCPUSoC() == '7362' or getCPUSoC() == 'bcm7362' or getCPUSoC() == 'BCM7362' or getCPUSoC() == 'bcm7358' or getCPUSoC() == '7405' or getCPUSoC() == '7405(with 3D)' or getCPUSoC() == 'bcm7424' or getBoxHostName() == 'vuultimo' or getBoxHostName() == 'mbmini' or getBoxHostName() == 'osmini' or getBoxHostName() == 'mbultra' or getBoxHostName() == 'h3':
|
if getCPUSoC() == 'hi3798mv200' or getBoxHostName() == 'zgemmah9s' or getBoxHostName == 'osmio4k' or getCPUSoC() == 'bcm7252s' or getBoxHostName() == 'gbquad4k' or getCPUSoC() == 'hi3798mv200' or getBoxHostName == 'ax60' or getCPUSoC() == '3798mv200' or getBoxHostName() == 'sf8008' or getCPUSoC() == 'bcm7251' or getBoxHostName() == 'sf4008' or getCPUSoC() == 'bcm7251s' or getCPUSoC() == '7241' or getBoxHostName() == 'h7' or getBoxHostName() == 'dm900' or getCPUSoC() == 'BCM97252SSFF' or getCPUSoC() == '7444s' or getCPUSoC() == '7252s' or getCPUSoC() == '7376' or getCPUSoC() == '72604' or getCPUSoC() == '7278' or getCPUSoC() == '7335' or getCPUSoC() == '7413' or getCPUSoC() == '7325' or getCPUSoC() == '7356' or getCPUSoC() == 'bcm7356' or getCPUSoC() == '7429' or getCPUSoC() == '7424' or getCPUSoC() == '7362' or getCPUSoC() == 'bcm7362' or getCPUSoC() == 'BCM7362' or getCPUSoC() == 'bcm7358' or getCPUSoC() == '7405' or getCPUSoC() == '7405(with 3D)' or getCPUSoC() == 'bcm7424' or getBoxHostName() == 'vuultimo' or getBoxHostName() == 'mbmini' or getBoxHostName() == 'osmini' or getBoxHostName() == 'mbultra' or getBoxHostName() == 'h3':
|
||||||
self.extractImage()
|
self.extractImage()
|
||||||
else:
|
else:
|
||||||
self.messagebox = self.session.open(MessageBox, _('Nie wykryto odpowiedniego STB do instalacji !!!!'), MessageBox.TYPE_INFO, 8)
|
self.messagebox = self.session.open(MessageBox, _('Nie wykryto odpowiedniego STB do instalacji !!!!'), MessageBox.TYPE_INFO, 8)
|
||||||
@@ -1551,6 +1564,11 @@ def readline(filename, iferror = ''):
|
|||||||
PrintException()
|
PrintException()
|
||||||
return data
|
return data
|
||||||
|
|
||||||
|
def Freespace(dev):
|
||||||
|
statdev = os.statvfs(dev)
|
||||||
|
space = statdev.f_bavail * statdev.f_frsize / 1024
|
||||||
|
print '[NeoBoot] Free space on %s = %i kilobytes' % (dev, space)
|
||||||
|
return space
|
||||||
|
|
||||||
def checkimage():
|
def checkimage():
|
||||||
mycheck = False
|
mycheck = False
|
||||||
@@ -1560,7 +1578,6 @@ def checkimage():
|
|||||||
mycheck = False
|
mycheck = False
|
||||||
return mycheck
|
return mycheck
|
||||||
|
|
||||||
|
|
||||||
def checkversion(session):
|
def checkversion(session):
|
||||||
version = 0
|
version = 0
|
||||||
if fileExists('/media/neoboot/ImageBoot/.version'):
|
if fileExists('/media/neoboot/ImageBoot/.version'):
|
||||||
@@ -1577,67 +1594,67 @@ def checkversion(session):
|
|||||||
else:
|
else:
|
||||||
session.open(NeoBootImageChoose)
|
session.open(NeoBootImageChoose)
|
||||||
else:
|
else:
|
||||||
session.open(MessageBox, _('Sorry: Wrong image in flash found.\n You have to install in flash image for you stb !!!'), MessageBox.TYPE_INFO, 10)
|
session.open(MessageBox, _('Sorry: Wrong image in flash found. You have to install in flash Vu+ or Octagon-sf4008 Image !!!'), 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 not fileExists('/media/neoboot/ImgeBoot/.neonextboot'):
|
||||||
|
if fileExists('/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/neo.sh'):
|
||||||
|
os.system('/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/neo.sh')
|
||||||
|
checkversion(session)
|
||||||
|
else:
|
||||||
|
main2(session)
|
||||||
if getNeoMount() == 'neo_install_/dev/sda1':
|
if getNeoMount() == 'neo_install_/dev/sda1':
|
||||||
session.open(NeoBootImageChoose)
|
checkversion(session)
|
||||||
elif getNeoMount() == 'neo_install_/dev/sda2':
|
elif getNeoMount() == 'neo_install_/dev/sda2':
|
||||||
session.open(NeoBootImageChoose)
|
checkversion(session)
|
||||||
elif getNeoMount() == 'neo_install_/dev/sdb1':
|
elif getNeoMount() == 'neo_install_/dev/sdb1':
|
||||||
session.open(NeoBootImageChoose)
|
checkversion(session)
|
||||||
elif getNeoMount() == 'neo_install_/dev/sdb2':
|
elif getNeoMount() == 'neo_install_/dev/sdb2':
|
||||||
session.open(NeoBootImageChoose)
|
checkversion(session)
|
||||||
elif getNeoMount() == 'neo_install_/dev/sdc1':
|
elif getNeoMount() == 'neo_install_/dev/sdc1':
|
||||||
session.open(NeoBootImageChoose)
|
checkversion(session)
|
||||||
elif getNeoMount() == 'neo_install_/dev/sdd1':
|
elif getNeoMount() == 'neo_install_/dev/sdd1':
|
||||||
session.open(NeoBootImageChoose)
|
checkversion(session)
|
||||||
elif getNeoMount() == 'neo_install_/dev/sde1':
|
elif getNeoMount() == 'neo_install_/dev/sde1':
|
||||||
session.open(NeoBootImageChoose)
|
checkversion(session)
|
||||||
elif getNeoMount() == 'neo_install_/dev/sdf1':
|
elif getNeoMount() == 'neo_install_/dev/sdf1':
|
||||||
session.open(NeoBootImageChoose)
|
checkversion(session)
|
||||||
elif not fileExists('/media/neoboot/ImgeBoot/.neonextboot'):
|
elif not fileExists('/media/neoboot/ImgeBoot/.neonextboot'):
|
||||||
main2(session)
|
main2(session)
|
||||||
else:
|
else:
|
||||||
main2(session)
|
main2(session)
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
|
||||||
|
checkversion(session)
|
||||||
|
|
||||||
def main2(session, **kwargs):
|
def main(session, **kwargs):
|
||||||
try:
|
try:
|
||||||
f = open('/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location', 'r')
|
doMount=True
|
||||||
|
with open('/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location', 'r') as f:
|
||||||
mypath = f.readline().strip()
|
mypath = f.readline().strip()
|
||||||
f.close()
|
if not os.path.exists('/media/neoboot'):
|
||||||
if not fileExists('/media/neoboot'):
|
system('mkdir /media/neoboot')
|
||||||
os.mkdir('/media/neoboot')
|
with open('/proc/mounts', 'r') as f:
|
||||||
cmd = 'mount ' + mypath + ' /media/neoboot'
|
|
||||||
os.system(cmd)
|
|
||||||
f = open('/proc/mounts', 'r')
|
|
||||||
for line in f.readlines():
|
for line in f.readlines():
|
||||||
if line.find('/media/neoboot') != -1:
|
if line.find('/media/neoboot') != -1:
|
||||||
line = line[0:9]
|
doMount=False
|
||||||
break
|
break
|
||||||
|
if doMount:
|
||||||
cmd = 'mount ' + line + ' ' + mypath
|
|
||||||
os.system(cmd)
|
|
||||||
cmd = 'mount ' + mypath + ' /media/neoboot'
|
cmd = 'mount ' + mypath + ' /media/neoboot'
|
||||||
os.system(cmd)
|
system(cmd)
|
||||||
else:
|
except Exception:
|
||||||
pass
|
|
||||||
checkversion(session)
|
|
||||||
except:
|
|
||||||
pass
|
pass
|
||||||
|
|
||||||
checkversion(session)
|
checkversion(session)
|
||||||
|
|
||||||
|
|
||||||
def menu(menuid, **kwargs):
|
def menu(menuid, **kwargs):
|
||||||
if menuid == 'mainmenu':
|
if menuid == 'mainmenu':
|
||||||
return [(_('[NEOBOOT]'),
|
return [(_('NEOBOOT'),
|
||||||
main,
|
main,
|
||||||
'neo_boot',
|
'neo_boot',
|
||||||
1)]
|
1)]
|
||||||
|
|||||||
@@ -109,7 +109,10 @@ class StartImage(Screen):
|
|||||||
os.system('rm -f /media/mmc/etc/init.d/neobootmount.sh;')
|
os.system('rm -f /media/mmc/etc/init.d/neobootmount.sh;')
|
||||||
|
|
||||||
#ARM procesor: DM900; AX HD60 4K
|
#ARM procesor: DM900; AX HD60 4K
|
||||||
if getBoxHostName == 'osmio4k' or getCPUSoC() == 'hi3798mv200' or getBoxHostName == 'ax60' or getCPUSoC() == '3798mv200' or getBoxHostName() == 'sf8008' or getCPUSoC() == 'BCM97252SSFF' or getBoxHostName() == 'dm900':
|
if getBoxHostName == ['osmio4k',
|
||||||
|
'ax60',
|
||||||
|
'sf8008',
|
||||||
|
'dm900'] :
|
||||||
if getImageNeoBoot() == 'Flash':
|
if getImageNeoBoot() == 'Flash':
|
||||||
if fileExists('/.multinfo'):
|
if fileExists('/.multinfo'):
|
||||||
os.system('cd /media/mmc; ln -sfn /sbin/init.sysvinit /media/mmc/sbin/init; reboot -d -f -h -i')
|
os.system('cd /media/mmc; ln -sfn /sbin/init.sysvinit /media/mmc/sbin/init; reboot -d -f -h -i')
|
||||||
@@ -145,7 +148,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() == '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':
|
elif getCPUtype() == 'ARMv7' and getCPUSoC() == 'hi3798mv200' or getBoxHostName() == 'zgemmah9s' or 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 ?'))
|
||||||
|
|
||||||
@@ -200,7 +203,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() == 'bcm7252s' or getBoxHostName() == 'gbquad4k' or getCPUSoC() == 'bcm7251' or getBoxHostName() == 'sf4008' or getCPUSoC() == 'bcm7251s' or getBoxHostName() == 'h7':
|
elif getCPUSoC() == 'hi3798mv200' or getBoxHostName() == 'zgemmah9s' or 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...')
|
||||||
@@ -299,6 +302,44 @@ class StartImage(Screen):
|
|||||||
self.session.open(Console, _('NeoBoot ARM....'), [cmd, cmd1])
|
self.session.open(Console, _('NeoBoot ARM....'), [cmd, cmd1])
|
||||||
self.close()
|
self.close()
|
||||||
|
|
||||||
|
if getCPUSoC() == 'hi3798mv200' or getBoxHostName() == 'zgemmah9s':
|
||||||
|
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/h9_mmcblk0p6.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/h9_mmcblk0p6.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 = 'dd if=/media/neoboot/ImagesUpload/.kernel/flash-kernel-%s.bin of=/dev/mmcblk0p6; 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/h9_mmcblk0p6.sh '
|
||||||
|
|
||||||
|
self.session.open(Console, _('NeoBoot ARM....'), [cmd, cmd1])
|
||||||
|
self.close()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#gbquad4k ARM ARM gbquad4k_kernel.sh
|
#gbquad4k ARM ARM gbquad4k_kernel.sh
|
||||||
elif getCPUSoC() == 'bcm7252s' or getBoxHostName() == 'gbquad4k':
|
elif getCPUSoC() == 'bcm7252s' or getBoxHostName() == 'gbquad4k':
|
||||||
@@ -380,7 +421,12 @@ class StartImage(Screen):
|
|||||||
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':
|
||||||
|
elif getBoxHostName() or getCPUSoC() == ['ax60',
|
||||||
|
'sf8008',
|
||||||
|
'dm900',
|
||||||
|
'7444s',
|
||||||
|
'7376'] :
|
||||||
if not fileExists('/media/neoboot/ImagesUpload/.kernel/zImage.%s.ipk' % ( getBoxVuModel()) ):
|
if not fileExists('/media/neoboot/ImagesUpload/.kernel/zImage.%s.ipk' % ( getBoxVuModel()) ):
|
||||||
self.myclose2(_('#############>>>>>>>>>\n\n\nError - w lokalizacji /media/neoboot/ImagesUpload/.kernel/ \nnie odnaleziono pliku kernela zImage.%s.ipk ' % ( getBoxVuModel()) ))
|
self.myclose2(_('#############>>>>>>>>>\n\n\nError - w lokalizacji /media/neoboot/ImagesUpload/.kernel/ \nnie odnaleziono pliku kernela zImage.%s.ipk ' % ( getBoxVuModel()) ))
|
||||||
elif not fileExists('/media/neoboot/ImagesUpload/.kernel/flash-kernel-%s.bin' % ( getBoxVuModel()) ):
|
elif not fileExists('/media/neoboot/ImagesUpload/.kernel/flash-kernel-%s.bin' % ( getBoxVuModel()) ):
|
||||||
|
|||||||
Reference in New Issue
Block a user