mirror of
https://github.com/gutosie/neoboot.git
synced 2025-12-22 08:10:06 +01:00
Update vu_mtd2_run.py
This commit is contained in:
@@ -116,7 +116,7 @@ class StartImage(Screen):
|
|||||||
#################_____mips___##########################
|
#################_____mips___##########################
|
||||||
|
|
||||||
#VUPLUS MIPS vu_dev_mtd2.sh
|
#VUPLUS MIPS vu_dev_mtd2.sh
|
||||||
if getBoxHostName() == 'vusolo2' or getBoxHostName() == 'vusolose' or getBoxHostName() == 'vuduo2' or getBoxHostName() == 'vuzero':
|
if getBoxHostName() == 'vusolose' or getBoxHostName() == 'vuduo2' or getBoxHostName() == 'vuzero':
|
||||||
if not fileExists('%sImagesUpload/.kernel/%s.vmlinux.gz' % (getNeoLocation(), getBoxHostName())):
|
if not fileExists('%sImagesUpload/.kernel/%s.vmlinux.gz' % (getNeoLocation(), getBoxHostName())):
|
||||||
self.myclose2(_('Error - in the location %sImagesUpload/.kernel/ \nkernel file not found flash kernel vmlinux.gz ' % getNeoLocation()))
|
self.myclose2(_('Error - in the location %sImagesUpload/.kernel/ \nkernel file not found flash kernel vmlinux.gz ' % getNeoLocation()))
|
||||||
else:
|
else:
|
||||||
@@ -150,7 +150,36 @@ class StartImage(Screen):
|
|||||||
|
|
||||||
self.session.open(Console, _('NeoBoot MIPS....'), [cmd, cmd1])
|
self.session.open(Console, _('NeoBoot MIPS....'), [cmd, cmd1])
|
||||||
self.close()
|
self.close()
|
||||||
|
|
||||||
|
elif getBoxHostName() == 'vusolo2':
|
||||||
|
if not fileExists('%sImagesUpload/.kernel/%s.vmlinux.gz' % (getNeoLocation(), getBoxHostName())):
|
||||||
|
self.myclose2(_('Error - in the location %sImagesUpload/.kernel/ \nkernel file not found flash kernel vmlinux.gz ' % getNeoLocation()))
|
||||||
|
else:
|
||||||
|
if getImageNeoBoot() == 'Flash':
|
||||||
|
if fileExists('/.multinfo'):
|
||||||
|
cmd2='/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/kernel.sh'
|
||||||
|
self.session.open(Console, _('NeoBoot Arm....'), [cmd2])
|
||||||
|
elif not fileExists('/.multinfo'):
|
||||||
|
self.session.open(TryQuitMainloop, 2)
|
||||||
|
elif getImageNeoBoot() != 'Flash':
|
||||||
|
if not fileExists('/.multinfo'):
|
||||||
|
if not fileExists('/media/neoboot/ImageBoot/%s/boot/%s.vmlinux.gz' % ( getImageNeoBoot(), getBoxVuModel())):
|
||||||
|
cmd2='ln -sfn /sbin/neoinitmips /sbin/init; /etc/init.d/reboot'
|
||||||
|
self.session.open(Console, _('NeoBoot Arm....'), [cmd2])
|
||||||
|
elif fileExists('/media/neoboot/ImageBoot/%s/boot/%s.vmlinux.gz' % ( getImageNeoBoot(), getBoxVuModel())):
|
||||||
|
cmd2='ln -sfn /sbin/neoinitmipsvu /sbin/init; /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/kernel.sh'
|
||||||
|
self.session.open(Console, _('NeoBoot Arm....'), [cmd2])
|
||||||
|
elif fileExists('/.multinfo'):
|
||||||
|
if not fileExists('/media/neoboot/ImageBoot/%s/boot/%s.vmlinux.gz' % ( getImageNeoBoot(), getBoxVuModel())):
|
||||||
|
cmd2='opkg install --force-reinstall --force-overwrite --force-downgrade /media/neoboot/ImagesUpload/.kernel/zImage.%s.ipk; /etc/init.d/reboot' % getBoxVuModel()
|
||||||
|
self.session.open(Console, _('NeoBoot Arm....'), [cmd2])
|
||||||
|
elif fileExists('/media/neoboot/ImageBoot/%s/boot/%s.vmlinux.gz' % ( getImageNeoBoot(), getBoxVuModel())):
|
||||||
|
cmd2='/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/kernel.sh'
|
||||||
|
self.session.open(Console, _('NeoBoot Arm....'), [cmd2])
|
||||||
|
else:
|
||||||
|
os.system('echo "Flash " >> /media/neoboot/ImageBoot/.neonextboot')
|
||||||
|
self.messagebox = self.session.open(MessageBox, _('WyglÄ…da na to ĹĽe model STB nie jest wpierany przez multiboota!!! '), MessageBox.TYPE_INFO, 8)
|
||||||
|
self.close()
|
||||||
else:
|
else:
|
||||||
os.system('echo "Flash " >> ' + getNeoLocation() + 'ImageBoot/.neonextboot')
|
os.system('echo "Flash " >> ' + getNeoLocation() + 'ImageBoot/.neonextboot')
|
||||||
self.messagebox = self.session.open(MessageBox, _('It looks like it that multiboot does not support this STB.'), MessageBox.TYPE_INFO, 8)
|
self.messagebox = self.session.open(MessageBox, _('It looks like it that multiboot does not support this STB.'), MessageBox.TYPE_INFO, 8)
|
||||||
|
|||||||
Reference in New Issue
Block a user