From 0d16013ef7261ed1b8d965979f21047a8ef24dbd Mon Sep 17 00:00:00 2001 From: gutosie Date: Thu, 24 Feb 2022 12:46:50 +0200 Subject: [PATCH] Update extract.py --- NeoBoot/extract.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/NeoBoot/extract.py b/NeoBoot/extract.py index 4b0c260..5548bcb 100644 --- a/NeoBoot/extract.py +++ b/NeoBoot/extract.py @@ -484,8 +484,11 @@ def NEOBootMainEx(source, target, CopyFiles, CopyKernel, TvList, LanWlan, Sterow if not os.path.exists('' + getNeoLocation() + 'ImageBoot/.without_copying'): for line in open("/etc/hostname"): - #if getCPUtype() == 'MIPS' and not "dm" in line: - if getCPUtype() == 'MIPS' and not "dm500hd" in line and not "dm800se" in line and not "dm800" in line and not "dm8000" in line : + 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)): + cmd = 'rm -r %s/ImageBoot/%s/etc/enigma2' % (media, target) + rc = os.system(cmd) + else: if not os.path.exists('%s/ImageBoot/%s/etc/enigma2' % (media, target)): cmd = 'mkdir -p %s/ImageBoot/%s/etc/enigma2' % (media, target) rc = os.system(cmd)