mirror of
https://github.com/gutosie/neoboot.git
synced 2025-12-21 07:49:41 +01:00
Add files via upload
This commit is contained in:
@@ -924,13 +924,6 @@ def NEOBootMainEx(
|
|||||||
getNeoLocation() + 'ImageBoot/%s/etc/init.d/' % target
|
getNeoLocation() + 'ImageBoot/%s/etc/init.d/' % target
|
||||||
rc = os.system(cmd5)
|
rc = os.system(cmd5)
|
||||||
|
|
||||||
if not os.path.exists('%s/ImageBoot/%s/lib/modules/' + getKernelVersion() + '/kernel/drivers/net/tun.ko' % (media, target)):
|
|
||||||
if not os.path.exists('%s/ImageBoot/%s/lib/modules/' + getKernelVersion() + '/kernel/drivers/net' % (media, target)):
|
|
||||||
cmd = 'mkdir -p %s/ImageBoot/%s/lib/modules/' + getKernelVersion() + '/kernel/drivers/net/' % (media, target)
|
|
||||||
rc = os.system(cmd)
|
|
||||||
cmd = 'cp -af /lib/modules/' + getKernelVersion() + '/kernel/drivers/net/tun.ko %s/ImageBoot/%s/lib/modules' + getKernelVersion() + 'kernel/drivers/net/' % (media, target)
|
|
||||||
rc = os.system(cmd)
|
|
||||||
|
|
||||||
if not os.path.exists('%s/ImageBoot/%s/var/run/tailscale' % (media, target)):
|
if not os.path.exists('%s/ImageBoot/%s/var/run/tailscale' % (media, target)):
|
||||||
cmd = 'mkdir -p ' + getNeoLocation() + '/ImageBoot/%s/run/tailscale/' % target
|
cmd = 'mkdir -p ' + getNeoLocation() + '/ImageBoot/%s/run/tailscale/' % target
|
||||||
rc = os.system(cmd)
|
rc = os.system(cmd)
|
||||||
@@ -2691,19 +2684,15 @@ def NEOBootMainEx(
|
|||||||
)
|
)
|
||||||
rc = os.system(cmd)
|
rc = os.system(cmd)
|
||||||
|
|
||||||
if os.path.exists('/lib/modules/' + getKernelVersion() + '/kernel/drivers/net/tun.ko'):
|
|
||||||
cmd = 'cp -af /lib/modules/' + getKernelVersion() + '/kernel/drivers/net/tun.ko %s/ImageBoot/%s/lib/modules' + getKernelVersion() + 'kernel/drivers/net/' % (media, target)
|
|
||||||
rc = os.system(cmd)
|
|
||||||
|
|
||||||
|
|
||||||
if os.path.exists("%s/ImageBoot/%s/etc/init.d" % (media, target)):
|
if os.path.exists("%s/ImageBoot/%s/etc/init.d" % (media, target)):
|
||||||
cmd = (
|
cmd = (
|
||||||
"ln -s %sImageBoot/%s/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/userscript.sh %sImageBoot/%s/etc/rcS.d/S99neo.local" %
|
"ln -s %sImageBoot/%s/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/userscript.sh %sImageBoot/%s/etc/rcS.d/S99neo.local" %
|
||||||
(media, target, media, target))
|
(media, target, media, target))
|
||||||
|
os.system('echo "Copied file neo_userscript.sh"')
|
||||||
|
|
||||||
elif not os.path.exists("%s/ImageBoot/%s/etc/init.d" % (media, target)):
|
elif not os.path.exists("%s/ImageBoot/%s/etc/init.d" % (media, target)):
|
||||||
os.system('echo "/etc/init.d not found."')
|
os.system('echo "/etc/init.d not found."')
|
||||||
os.system('echo "Copied file neo_userscript.sh"')
|
|
||||||
|
|
||||||
if not os.path.exists(
|
if not os.path.exists(
|
||||||
"" + getNeoLocation() + "ImageBoot/.without_copying"
|
"" + getNeoLocation() + "ImageBoot/.without_copying"
|
||||||
|
|||||||
Reference in New Issue
Block a user