From 572ca6274cabf619b49db00e59167208051b0331 Mon Sep 17 00:00:00 2001 From: gutosie Date: Wed, 2 Feb 2022 17:17:11 +0200 Subject: [PATCH] Update vumtd1mtd2run.py --- NeoBoot/tmpfiles/runpy/vumtd1mtd2run.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/NeoBoot/tmpfiles/runpy/vumtd1mtd2run.py b/NeoBoot/tmpfiles/runpy/vumtd1mtd2run.py index 473e7dd..55a4b7e 100644 --- a/NeoBoot/tmpfiles/runpy/vumtd1mtd2run.py +++ b/NeoBoot/tmpfiles/runpy/vumtd1mtd2run.py @@ -172,11 +172,14 @@ class StartImage(Screen): elif fileExists('/.multinfo'): if not fileExists('%sImageBoot/%s/boot/%s.vmlinux.gz' % (getNeoLocation(), getImageNeoBoot(), getBoxHostName())): - cmd = "echo -e '\n%s '" % _('...............NEOBOOT_REBOOT...............\nPlease wait, in a moment the decoder will be restarted...') - cmd1 = 'update-alternatives --remove vmlinux vmlinux-`uname -r` || true' - cmd2 = 'sync' - cmd3 = "echo -e '\n%s '" % _('Start image based on flash kernel !\nSTB NAME: ' + getBoxHostName() + '\nNeoBoot location:' + getNeoLocation() + '\nCPU: ' + getCPUSoC() + '\nImagen boot: ' + getImageNeoBoot() + ' ') - cmd4 = 'sleep 8; reboot -d -f' + cmd = "echo -e '\n%s '" % _('...............NeoBoot REBOOT...............\nPlease wait, in a moment the decoder will be restarted...') + cmd1 = 'flash_erase /dev/' + mtd + ' 0 0 > /dev/null 2>&1 ; flash_eraseall /dev/' + mtd + ' > /dev/null 2>&1' + if getNandWrite() == 'nandwrite': + cmd2 = 'nandwrite -p /dev/' + mtd + ' ' + getNeoLocation() + 'ImagesUpload/.kernel/' + getBoxHostName() + '.vmlinux.gz > /dev/null 2>&1' + else: + cmd2 = '' + LinkNeoBoot + '/bin/nandwrite -p /dev/' + mtd + ' ' + getNeoLocation() + 'ImagesUpload/.kernel/' + getBoxHostName() + '.vmlinux.gz > /dev/null 2>&1' + cmd3 = "echo -e '\n%s '" % _('Changed kernel COMPLETE ! ' + getNandWrite() + '\nSTB NAME: ' + getBoxHostName() + '\nNeoBoot location:' + getNeoLocation() + '\nCPU: ' + getCPUSoC() + '\nImagen boot: ' + getImageNeoBoot() + ' ') + cmd4 = 'update-alternatives --remove vmlinux vmlinux-`uname -r` || true; sync; sleep 8; reboot -d -f' elif fileExists('%sImageBoot/%s/boot/%s.vmlinux.gz' % (getNeoLocation(), getImageNeoBoot(), getBoxHostName())): cmd = "echo -e '\n%s '" % _('...............REBOOT now...............\nPlease wait, in a moment the decoder will be restarted...')