mirror of
https://github.com/gutosie/neoboot.git
synced 2025-12-17 05:49:50 +01:00
Update extract.py
This commit is contained in:
@@ -477,11 +477,7 @@ def NEOBootMainEx(source, target, CopyFiles, CopyKernel, TvList, LanWlan, Sterow
|
|||||||
rc = os.system(cmd1)
|
rc = os.system(cmd1)
|
||||||
os.system('echo "Copied file tailscale"')
|
os.system('echo "Copied file tailscale"')
|
||||||
|
|
||||||
try:
|
try:
|
||||||
cmd1 = 'cp -af /lib/modules/*/kernel/drivers/net/tun.ko '+media+'ImageBoot/'+target+'/'
|
|
||||||
rc = os.system(cmd1)
|
|
||||||
os.system('echo "Copied file tun.ko to new image"')
|
|
||||||
|
|
||||||
if not os.path.exists(''+media+'/ImageBoot/'+target+'/var/run/tailscale'):
|
if not os.path.exists(''+media+'/ImageBoot/'+target+'/var/run/tailscale'):
|
||||||
cmd = 'mkdir -p '+media+'ImageBoot/'+target+'/run/tailscale/'
|
cmd = 'mkdir -p '+media+'ImageBoot/'+target+'/run/tailscale/'
|
||||||
rc = os.system(cmd)
|
rc = os.system(cmd)
|
||||||
@@ -500,7 +496,7 @@ def NEOBootMainEx(source, target, CopyFiles, CopyKernel, TvList, LanWlan, Sterow
|
|||||||
except:
|
except:
|
||||||
os.system('echo "not found run_resolvconf_interfaces_tailscale"')
|
os.system('echo "not found run_resolvconf_interfaces_tailscale"')
|
||||||
except:
|
except:
|
||||||
os.system('echo "Not found file tun.ko"')
|
os.system('echo "Not copied taiscale."')
|
||||||
|
|
||||||
if os.path.exists('/var/spool/cron') or os.path.exists('/etc/cron') :
|
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'):
|
||||||
|
|||||||
Reference in New Issue
Block a user