mirror of
https://github.com/gutosie/neoboot.git
synced 2025-12-16 21:39:53 +01:00
Update extract.py
This commit is contained in:
@@ -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
|
cmd1 = 'cp -af /var/spool/cron/* ' + getNeoLocation() + 'ImageBoot/%s/var/spool/cron' % target
|
||||||
rc = os.system(cmd1)
|
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'):
|
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
|
cmd1 = 'cp -af /etc/cron/* ' + getNeoLocation() + 'ImageBoot/%s/etc/cron' % target
|
||||||
rc = os.system(cmd1)
|
rc = os.system(cmd1)
|
||||||
except:
|
elif os.path.exists('/var/spool/cron'):
|
||||||
cmd1 = 'cp -af /var/spool/cron/* ' + getNeoLocation() + 'ImageBoot/%s/etc/cron' % target
|
cmd1 = 'cp -af /var/spool/cron/* ' + getNeoLocation() + 'ImageBoot/%s/etc/cron' % target
|
||||||
rc = os.system(cmd1)
|
rc = os.system(cmd1)
|
||||||
os.system('echo "Copied cron files."')
|
os.system('echo "Copied cron files."')
|
||||||
|
|||||||
Reference in New Issue
Block a user