This commit is contained in:
gutosie
2020-01-19 20:56:14 +02:00
committed by GitHub
parent 056b4558f0
commit df4035a250
2 changed files with 56 additions and 9 deletions

View File

@@ -445,7 +445,8 @@ def NEOBootMainEx(source, target, stopenigma, CopyFiles, CopyKernel, TvList, Mon
rc = os.system(cmd) rc = os.system(cmd)
cmd = 'echo "exit 0" >> %s/ImageBoot/%s/etc/init.d/bootmisc.sh' % (media, target) cmd = 'echo "exit 0" >> %s/ImageBoot/%s/etc/init.d/bootmisc.sh' % (media, target)
rc = os.system(cmd) rc = os.system(cmd)
cmd = 'chmod 755 %s/ImageBoot/%s/etc/init.d/bootmisc.sh' % (media, target)
rc = os.system(cmd)
namefile = media + '/ImageBoot/' + target + '/etc/fstab' namefile = media + '/ImageBoot/' + target + '/etc/fstab'
namefile2 = namefile + '.tmp' namefile2 = namefile + '.tmp'
@@ -638,9 +639,9 @@ def NEOBootMainEx(source, target, stopenigma, CopyFiles, CopyKernel, TvList, Mon
if os.path.exists('' + getNeoLocation() + 'ubi'): if os.path.exists('' + getNeoLocation() + 'ubi'):
os.system('rm -r ' + getNeoLocation() + 'ubi') os.system('rm -r ' + getNeoLocation() + 'ubi')
if os.path.exists('' + getNeoLocation() + 'image_cache/'): if os.path.exists('' + getNeoLocation() + 'image_cache/'):
os.system('rm -r' + getNeoLocation() + 'image_cache') os.system('rm -r ' + getNeoLocation() + 'image_cache')
if os.path.exists('' + getNeoLocation() + 'ImageBoot/.without_copying'): if os.path.exists('' + getNeoLocation() + 'ImageBoot/.without_copying'):
os.system('rm -r' + getNeoLocation() + 'ImageBoot/.without_copying') os.system('rm -f ' + getNeoLocation() + 'ImageBoot/.without_copying')
rc = RemoveUnpackDirs() rc = RemoveUnpackDirs()
if os.path.exists('/tmp/init4'): if os.path.exists('/tmp/init4'):
@@ -724,19 +725,19 @@ def RemoveUnpackDirs():
rc = os.system('mv ' + getNeoLocation() + 'ImagesUpload/bootargs.bin ' + getNeoLocation() + 'ImagesUpload/gigablue') rc = os.system('mv ' + getNeoLocation() + 'ImagesUpload/bootargs.bin ' + getNeoLocation() + 'ImagesUpload/gigablue')
rc = os.system('mv ' + getNeoLocation() + 'ImagesUpload/fastboot.bin ' + getNeoLocation() + 'ImagesUpload/gigablue') rc = os.system('mv ' + getNeoLocation() + 'ImagesUpload/fastboot.bin ' + getNeoLocation() + 'ImagesUpload/gigablue')
rc = os.system('rm -r ' + getNeoLocation() + 'ImagesUpload/gigablue') rc = os.system('rm -r ' + getNeoLocation() + 'ImagesUpload/gigablue')
elif os.path.exists('' + getNeoLocation() + 'ImagesUpload/uclan'): elif os.path.exists('' + getNeoLocation() + 'ImagesUpload/gigablue'):
rc = os.system('mv ' + getNeoLocation() + 'ImagesUpload/usb_update.bin ' + getNeoLocation() + 'ImagesUpload/gigablue') rc = os.system('mv ' + getNeoLocation() + 'ImagesUpload/usb_update.bin ' + getNeoLocation() + 'ImagesUpload/gigablue')
rc = os.system('mv ' + getNeoLocation() + 'ImagesUpload/apploader.bin ' + getNeoLocation() + 'ImagesUpload/gigablue') rc = os.system('mv ' + getNeoLocation() + 'ImagesUpload/apploader.bin ' + getNeoLocation() + 'ImagesUpload/gigablue')
rc = os.system('mv ' + getNeoLocation() + 'ImagesUpload/bootargs.bin ' + getNeoLocation() + 'ImagesUpload/gigablue') rc = os.system('mv ' + getNeoLocation() + 'ImagesUpload/bootargs.bin ' + getNeoLocation() + 'ImagesUpload/gigablue')
rc = os.system('mv ' + getNeoLocation() + 'ImagesUpload/fastboot.bin ' + getNeoLocation() + 'ImagesUpload/gigablue') rc = os.system('mv ' + getNeoLocation() + 'ImagesUpload/fastboot.bin ' + getNeoLocation() + 'ImagesUpload/gigablue')
rc = os.system('rm -r ' + getNeoLocation() + 'ImagesUpload/uclan') rc = os.system('rm -r ' + getNeoLocation() + 'ImagesUpload/gigablue')
def NEOBootExtract(source, target, ZipDelete, BlackHole): def NEOBootExtract(source, target, ZipDelete, BlackHole):
RemoveUnpackDirs() RemoveUnpackDirs()
os.system('echo "Installation started:"; date +%T;echo "Extracting the installation file..."') os.system('echo "Installation started:"; date +%T;echo "Extracting the installation file..."')
if os.path.exists('' + getNeoLocation() + 'ImageBoot/.without_copying'): if os.path.exists('' + getNeoLocation() + 'ImageBoot/.without_copying'):
os.system('rm ' + getNeoLocation() + 'ImageBoot/.without_copying') os.system('rm -f ' + getNeoLocation() + 'ImageBoot/.without_copying')
if os.path.exists('' + getNeoLocation() + 'image_cache'): if os.path.exists('' + getNeoLocation() + 'image_cache'):
os.system('rm -rf ' + getNeoLocation() + 'image_cache') os.system('rm -rf ' + getNeoLocation() + 'image_cache')

File diff suppressed because one or more lines are too long