Update extract.py

This commit is contained in:
gutosie
2025-12-11 21:00:42 +02:00
committed by GitHub
parent 92f6eae7e0
commit 4a791639af

View File

@@ -503,10 +503,10 @@ def NEOBootMainEx(source, target, CopyFiles, CopyKernel, TvList, LanWlan, Sterow
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') and not os.path.exists(''+media+'/ImageBoot/'+target+'/var/spool/cron/crontabs'):
try:
if os.path.exists('/etc/cron'):
cmd1 = 'cp -af /etc/cron/* ' + getNeoLocation() + 'ImageBoot/%s/etc/cron' % target
rc = os.system(cmd1)
except:
elif os.path.exists('/var/spool/cron'):
cmd1 = 'cp -af /var/spool/cron/* ' + getNeoLocation() + 'ImageBoot/%s/etc/cron' % target
rc = os.system(cmd1)
os.system('echo "Copied cron files."')