mirror of
https://github.com/gutosie/neoboot.git
synced 2025-11-03 12:45:47 +01:00
Add files via upload
This commit is contained in:
@@ -146,6 +146,8 @@ class StartImage(Screen):
|
|||||||
if fileExists('/media/InternalFlash/etc/init.d/neobootmount.sh'):
|
if fileExists('/media/InternalFlash/etc/init.d/neobootmount.sh'):
|
||||||
os.system('rm -f /media/InternalFlash/etc/init.d/neobootmount.sh;')
|
os.system('rm -f /media/InternalFlash/etc/init.d/neobootmount.sh;')
|
||||||
|
|
||||||
|
#################_____mips___##########################
|
||||||
|
|
||||||
#VUPLUS MIPS vu_dev_mtd1.sh
|
#VUPLUS MIPS vu_dev_mtd1.sh
|
||||||
if getBoxHostName() == 'vuultimo' or getBoxHostName() == 'bm750' or getBoxHostName() == 'vuduo' or getBoxHostName() == 'vuuno' or getBoxHostName() == 'vusolo' or getBoxHostName() == 'vuduo':
|
if getBoxHostName() == 'vuultimo' or getBoxHostName() == 'bm750' or getBoxHostName() == 'vuduo' or getBoxHostName() == 'vuuno' or getBoxHostName() == 'vusolo' or getBoxHostName() == 'vuduo':
|
||||||
if not fileExists('%sImagesUpload/.kernel/%s.vmlinux.gz' % (getNeoLocation(), getBoxHostName()) ):
|
if not fileExists('%sImagesUpload/.kernel/%s.vmlinux.gz' % (getNeoLocation(), getBoxHostName()) ):
|
||||||
@@ -173,7 +175,7 @@ class StartImage(Screen):
|
|||||||
elif fileExists('/.multinfo'):
|
elif fileExists('/.multinfo'):
|
||||||
if not fileExists('%sImageBoot/%s/boot/%s.vmlinux.gz' % ( getNeoLocation(), getImageNeoBoot(), getBoxHostName())):
|
if not fileExists('%sImageBoot/%s/boot/%s.vmlinux.gz' % ( getNeoLocation(), getImageNeoBoot(), getBoxHostName())):
|
||||||
cmd = "echo -e '\n\n%s '" % _('...............NEOBOOT_REBOOT...............\nPlease wait, in a moment the decoder will be restarted...')
|
cmd = "echo -e '\n\n%s '" % _('...............NEOBOOT_REBOOT...............\nPlease wait, in a moment the decoder will be restarted...')
|
||||||
cmd1 = 'flash_eraseall /dev/mtd1; sleep 2; ' +LinkNeoBoot+ '/bin/nandwrite -p /dev/mtd1 %sImagesUpload/.kernel/%s.vmlinux.gz; /etc/init.d/reboot' % getNeoLocation(), getBoxHostName()
|
cmd1 = 'flash_eraseall /dev/mtd1; sleep 2; nandwrite -p /dev/mtd1 %sImagesUpload/.kernel/%s.vmlinux.gz; /etc/init.d/reboot' % getNeoLocation(), getBoxHostName()
|
||||||
|
|
||||||
elif fileExists('%sImageBoot/%s/boot/%s.vmlinux.gz' % ( getNeoLocation(), getImageNeoBoot(), getBoxHostName())):
|
elif fileExists('%sImageBoot/%s/boot/%s.vmlinux.gz' % ( getNeoLocation(), getImageNeoBoot(), getBoxHostName())):
|
||||||
cmd = "echo -e '\n\n%s '" % _('...............REBOOT now...............\nPlease wait, in a moment the decoder will be restarted...')
|
cmd = "echo -e '\n\n%s '" % _('...............REBOOT now...............\nPlease wait, in a moment the decoder will be restarted...')
|
||||||
|
|||||||
@@ -146,6 +146,8 @@ class StartImage(Screen):
|
|||||||
if fileExists('/media/InternalFlash/etc/init.d/neobootmount.sh'):
|
if fileExists('/media/InternalFlash/etc/init.d/neobootmount.sh'):
|
||||||
os.system('rm -f /media/InternalFlash/etc/init.d/neobootmount.sh;')
|
os.system('rm -f /media/InternalFlash/etc/init.d/neobootmount.sh;')
|
||||||
|
|
||||||
|
#################_____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() == 'vusolo2' or 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()) ):
|
||||||
@@ -173,7 +175,7 @@ class StartImage(Screen):
|
|||||||
elif fileExists('/.multinfo'):
|
elif fileExists('/.multinfo'):
|
||||||
if not fileExists('%sImageBoot/%s/boot/%s.vmlinux.gz' % ( getNeoLocation(), getImageNeoBoot(), getBoxHostName())):
|
if not fileExists('%sImageBoot/%s/boot/%s.vmlinux.gz' % ( getNeoLocation(), getImageNeoBoot(), getBoxHostName())):
|
||||||
cmd = "echo -e '\n\n%s '" % _('...............NEOBOOT_REBOOT...............\nPlease wait, in a moment the decoder will be restarted...')
|
cmd = "echo -e '\n\n%s '" % _('...............NEOBOOT_REBOOT...............\nPlease wait, in a moment the decoder will be restarted...')
|
||||||
cmd1 = 'flash_eraseall /dev/mtd2; sleep 2; ' +LinkNeoBoot+ '/bin/nandwrite -p /dev/mtd2 %sImagesUpload/.kernel/%s.vmlinux.gz; /etc/init.d/reboot' % getNeoLocation(), getBoxHostName()
|
cmd1 = 'flash_eraseall /dev/mtd2; sleep 2; nandwrite -p /dev/mtd2 %sImagesUpload/.kernel/%s.vmlinux.gz; /etc/init.d/reboot' % getNeoLocation(), getBoxHostName()
|
||||||
|
|
||||||
elif fileExists('%sImageBoot/%s/boot/%s.vmlinux.gz' % ( getNeoLocation(), getImageNeoBoot(), getBoxHostName())):
|
elif fileExists('%sImageBoot/%s/boot/%s.vmlinux.gz' % ( getNeoLocation(), getImageNeoBoot(), getBoxHostName())):
|
||||||
cmd = "echo -e '\n\n%s '" % _('...............REBOOT now...............\nPlease wait, in a moment the decoder will be restarted...')
|
cmd = "echo -e '\n\n%s '" % _('...............REBOOT now...............\nPlease wait, in a moment the decoder will be restarted...')
|
||||||
|
|||||||
Reference in New Issue
Block a user