Update mips_run.py

This commit is contained in:
gutosie
2022-01-19 12:18:14 +02:00
committed by GitHub
parent 8ef61dabc3
commit 3947eb4633

View File

@@ -110,22 +110,19 @@ class StartImage(Screen):
os.system('rm -f /media/InternalFlash/etc/init.d/neobootmount.sh;') os.system('rm -f /media/InternalFlash/etc/init.d/neobootmount.sh;')
if (getSupportedTuners()): if (getSupportedTuners()):
if getImageNeoBoot() == 'Flash': if getImageNeoBoot() == 'Flash':
cmd = "echo -e '\n\n%s '" % _('NEOBOOT - Restart image flash....\nPlease wait, in a moment the decoder will be restarted...\n') cmd = 'ln -sfn /sbin/init.sysvinit /sbin/init'
cmd1 = 'sleep 8; ln -sfn /sbin/init.sysvinit /sbin/init; reboot -f ' rc = os.system(cmd)
self.session.open(Console, _('NeoBoot ....'), [cmd, cmd1]) self.session.open(TryQuitMainloop, 2)
elif getImageNeoBoot() != 'Flash': elif 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...\n') self.session.open(TryQuitMainloop, 2)
cmd1 = 'sleep 5; reboot -f '
self.session.open(Console, _('NeoBoot ....'), [cmd, cmd1])
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...\n') cmd = 'ln -sfn /sbin/neoinitmips /sbin/init'
cmd1 = 'sleep 8; ln -sfn /sbin/neoinitmips /sbin/init; reboot -f ' rc = os.system(cmd)
self.session.open(Console, _('NeoBoot ....'), [cmd, cmd1]) self.session.open(TryQuitMainloop, 2)
else: else:
cmd = "echo -e '\n\n%s '" % _('NEOBOOT - Restart image flash....\nPlease wait, in a moment the decoder will be restarted...\n') os.system('echo "Flash " >> ' + getNeoLocation() + 'ImageBoot/.neonextboot')
cmd1 = 'sleep 8; ln -sfn /sbin/init.sysvinit /sbin/init; reboot -f ' self.session.open(TryQuitMainloop, 2)
self.session.open(Console, _('NeoBoot-ERROR!!! ....'), [cmd, cmd1])
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)