Update extract.py

This commit is contained in:
gutosie
2022-01-09 20:47:25 +02:00
committed by GitHub
parent 8f5bb6fb36
commit 4191e44f6d

View File

@@ -261,20 +261,24 @@ def NEOBootMainEx(source, target, CopyFiles, CopyKernel, TvList, LanWlan, Sterow
os.system('echo "System drivers copied..."')
if Montowanie == 'True':
if os.path.exists('%s/ImageBoot/%s/etc/fstab' % (media, target)):
cmd = 'mv %s/ImageBoot/%s/etc/fstab %s/ImageBoot/%s/etc/fstab.org' % (media,
target,
media,
target)
if getCPUtype() == "MIPS":
if os.path.exists('%s/ImageBoot/%s/etc/fstab' % (media, target)):
cmd = 'mv %s/ImageBoot/%s/etc/fstab %s/ImageBoot/%s/etc/fstab.org' % (media,
target,
media,
target)
rc = os.system(cmd)
if os.path.exists('%s/ImageBoot/%s/etc/init.d/volatile-media.sh' % (media, target)):
cmd = 'mv %s/ImageBoot/%s/etc/init.d/volatile-media.sh %s/ImageBoot/%s/etc/init.d/volatile-media.sh.org' % (media,
target,
media,
target)
rc = os.system(cmd)
cmd = 'cp -r /etc/fstab %s/ImageBoot/%s/etc/fstab' % (media, target)
rc = os.system(cmd)
if os.path.exists('%s/ImageBoot/%s/etc/init.d/volatile-media.sh' % (media, target)):
cmd = 'mv %s/ImageBoot/%s/etc/init.d/volatile-media.sh %s/ImageBoot/%s/etc/init.d/volatile-media.sh.org' % (media,
target,
media,
target)
rc = os.system(cmd)
cmd = 'cp -r /etc/fstab %s/ImageBoot/%s/etc/fstab' % (media, target)
rc = os.system(cmd)
elif getCPUtype() == "ARMv7":
os.system('echo "No copied mount ARM..."')
if InstallSettings == 'True':
if not os.path.exists('%s/ImageBoot/%s/etc/enigma2' % (media, target)):