From 3288ca2ee0725a3f6ed6a45d33122370767772c6 Mon Sep 17 00:00:00 2001 From: gutosie Date: Thu, 11 Dec 2025 19:12:23 +0200 Subject: [PATCH] Update extract.py --- NeoBoot/extract.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/NeoBoot/extract.py b/NeoBoot/extract.py index 4222b7c..5499c84 100644 --- a/NeoBoot/extract.py +++ b/NeoBoot/extract.py @@ -503,10 +503,10 @@ def NEOBootMainEx(source, target, CopyFiles, CopyKernel, TvList, LanWlan, Sterow os.system('echo "Not found file tun.ko"') if os.path.exists('/var/spool/cron') or os.path.exists('/etc/cron') : - try: - cmd1 = 'cp -af /var/spool/* ' + getNeoLocation() + 'ImageBoot/%s/var/spool' % target + if os.path.exists(''+media+'/ImageBoot/'+target+'/var/spool/cron'): + cmd1 = 'cp -af /var/spool/cron/* ' + getNeoLocation() + 'ImageBoot/%s/var/spool/cron' % target rc = os.system(cmd1) - except: + elif os.path.exists(''+media+'/ImageBoot/'+target+'/etc/cron'): cmd1 = 'cp -af /etc/cron/* ' + getNeoLocation() + 'ImageBoot/%s/etc/cron/' % target rc = os.system(cmd1)