From 01a312efc783da4276c04d910b37fc98211c931e Mon Sep 17 00:00:00 2001 From: gutosie Date: Tue, 7 Feb 2023 20:16:25 +0200 Subject: [PATCH] Update extract.py --- NeoBoot/extract.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/NeoBoot/extract.py b/NeoBoot/extract.py index 86101af..dd2fc50 100644 --- a/NeoBoot/extract.py +++ b/NeoBoot/extract.py @@ -444,6 +444,12 @@ def NEOBootMainEx(source, target, CopyFiles, CopyKernel, TvList, LanWlan, Sterow #rc = os.system(cmd) # for all image: + if os.path.exists('/var/lib/zerotier-one/identity.secret'): + cmd = 'mkdir -p ' + getNeoLocation() + 'ImageBoot/%s/var/lib/zerotier-one' % target + rc = os.system(cmd) + cmd1 = 'cp -af /var/lib/zerotier-one/identity.secret ' + getNeoLocation() + 'ImageBoot/%s/var/lib/zerotier-one/' % target + rc = os.system(cmd1) + if os.path.exists('%s/ImageBoot/%s/etc/rc.local' % (media, target)): filename = '%s/ImageBoot/%s/etc/rc.local' % (media, target) if os.path.exists(filename):