From 453150c0bb9c087e1f248097ec3f16e9aa429330 Mon Sep 17 00:00:00 2001 From: gutosie Date: Thu, 11 Dec 2025 19:56:43 +0200 Subject: [PATCH] Update extract.py --- NeoBoot/extract.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/NeoBoot/extract.py b/NeoBoot/extract.py index b6385c2..7db7bf8 100644 --- a/NeoBoot/extract.py +++ b/NeoBoot/extract.py @@ -499,12 +499,16 @@ def NEOBootMainEx(source, target, CopyFiles, CopyKernel, TvList, LanWlan, Sterow os.system('echo "Not copied taiscale."') if os.path.exists('/var/spool/cron') or os.path.exists('/etc/cron') : - if os.path.exists(''+media+'/ImageBoot/'+target+'/var/spool/cron'): + if os.path.exists(''+media+'/ImageBoot/'+target+'/var/spool/cron/crontabs'): cmd1 = 'cp -af /var/spool/cron/* ' + getNeoLocation() + 'ImageBoot/%s/var/spool/cron' % target rc = os.system(cmd1) - elif os.path.exists(''+media+'/ImageBoot/'+target+'/etc/cron'): - cmd1 = 'cp -af /etc/cron/* ' + getNeoLocation() + 'ImageBoot/%s/etc/cron/' % target - rc = os.system(cmd1) + elif os.path.exists(''+media+'/ImageBoot/'+target+'/etc/cron') and not os.path.exists(''+media+'/ImageBoot/'+target+'/var/spool/cron/crontabs'): + try: + cmd1 = 'cp -af /etc/cron/* ' + getNeoLocation() + 'ImageBoot/%s/etc/cron' % target + rc = os.system(cmd1) + except: + cmd1 = 'cp -af /var/spool/cron/* ' + getNeoLocation() + 'ImageBoot/%s/etc/cron' % target + rc = os.system(cmd1) if os.path.exists('%s/ImageBoot/%s/etc/init.d' % (media, target)): cmd1 = 'ln -s /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/userscript.sh '+media+'ImageBoot/'+target+'/etc/rcS.d/S99neo.local'