Update extract.py

This commit is contained in:
gutosie
2025-12-11 19:56:43 +02:00
committed by GitHub
parent 46f978783c
commit 453150c0bb

View File

@@ -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'