Update extract.py

This commit is contained in:
gutosie
2022-02-24 12:53:16 +02:00
committed by GitHub
parent 0d16013ef7
commit ffcedc68ae

View File

@@ -300,7 +300,7 @@ def NEOBootMainEx(source, target, CopyFiles, CopyKernel, TvList, LanWlan, Sterow
rc = os.system(cmd)
cmd = 'cp -af /etc/tuxbox/* %s/ImageBoot/%s/etc/tuxbox' % (media, target)
rc = os.system(cmd)
os.system('echo "System settings copied..."')
os.system('touch /tmp/settings_copied; echo "System settings copied..."')
if RepairFTP == 'True':
if os.path.exists('%s/ImageBoot/%s/etc/vsftpd.conf' % (media, target)):
@@ -482,7 +482,7 @@ def NEOBootMainEx(source, target, CopyFiles, CopyKernel, TvList, LanWlan, Sterow
os.system('echo "/etc/init.d not found."')
os.system('echo "Copied file neo_userscript.sh"')
if not os.path.exists('' + getNeoLocation() + 'ImageBoot/.without_copying'):
if not os.path.exists('' + getNeoLocation() + 'ImageBoot/.without_copying') and not os.path.exists(' /tmp/settings_copied'):
for line in open("/etc/hostname"):
if getCPUtype() == 'MIPS' and "dm500hd" in line or "dm800se" in line or "dm800" in line or "dm800se" in line or "dm8000" in line:
if os.path.exists('%s/ImageBoot/%s/etc/enigma2' % (media, target)):