mirror of
https://github.com/gutosie/neoboot.git
synced 2025-11-07 14:35:48 +01:00
Update extract.py
This commit is contained in:
@@ -368,13 +368,10 @@ def NEOBootMainEx(source, target, CopyFiles, CopyKernel, TvList, LanWlan, Sterow
|
|||||||
if 'BlackHole' in source and os.path.exists('%s/ImageBoot/%s/usr/lib/enigma2/python/Blackhole' % (media, target)):
|
if 'BlackHole' in source and os.path.exists('%s/ImageBoot/%s/usr/lib/enigma2/python/Blackhole' % (media, target)):
|
||||||
cmd = 'mkdir -p ' + getNeoLocation() + 'ImageBoot/%s/boot/blackhole' % target
|
cmd = 'mkdir -p ' + getNeoLocation() + 'ImageBoot/%s/boot/blackhole' % target
|
||||||
rc = os.system(cmd)
|
rc = os.system(cmd)
|
||||||
cmd = 'cp -f ' + extensions_path + 'NeoBoot/bin/version ' + getNeoLocation() + 'ImageBoot/%s/boot/blackhole/version' % target
|
|
||||||
rc = os.system(cmd)
|
|
||||||
cmd = 'mv ' + getNeoLocation() + 'ImageBoot/' + target + '/usr/lib/enigma2/python/Blackhole/BhUtils.pyo ' + getNeoLocation() + 'ImageBoot/%s/usr/lib/enigma2/python/Blackhole/BhUtils.pyo.org' % target
|
cmd = 'mv ' + getNeoLocation() + 'ImageBoot/' + target + '/usr/lib/enigma2/python/Blackhole/BhUtils.pyo ' + getNeoLocation() + 'ImageBoot/%s/usr/lib/enigma2/python/Blackhole/BhUtils.pyo.org' % target
|
||||||
rc = os.system(cmd)
|
rc = os.system(cmd)
|
||||||
cmd = 'cp -af ' + extensions_path + 'NeoBoot/bin/utilsbh ' + getNeoLocation() + 'ImageBoot/%s/usr/lib/enigma2/python/Blackhole/BhUtils.py' % target
|
cmd = 'cp -af ' + extensions_path + 'NeoBoot/bin/utilsbh ' + getNeoLocation() + 'ImageBoot/%s/usr/lib/enigma2/python/Blackhole/BhUtils.py' % target
|
||||||
rc = os.system(cmd)
|
rc = os.system(cmd)
|
||||||
|
|
||||||
ver = source.replace('BlackHole-', '')
|
ver = source.replace('BlackHole-', '')
|
||||||
try:
|
try:
|
||||||
text = ver.split('-')[0]
|
text = ver.split('-')[0]
|
||||||
@@ -384,7 +381,6 @@ def NEOBootMainEx(source, target, CopyFiles, CopyKernel, TvList, LanWlan, Sterow
|
|||||||
temp_file = open(localfile, 'w')
|
temp_file = open(localfile, 'w')
|
||||||
temp_file.write(text)
|
temp_file.write(text)
|
||||||
temp_file.close()
|
temp_file.close()
|
||||||
|
|
||||||
cmd = 'mv ' + getNeoLocation() + 'ImageBoot/' + target + '/usr/bin/enigma2 ' + getNeoLocation() + 'ImageBoot/%s/usr/bin/enigma2-or' % target
|
cmd = 'mv ' + getNeoLocation() + 'ImageBoot/' + target + '/usr/bin/enigma2 ' + getNeoLocation() + 'ImageBoot/%s/usr/bin/enigma2-or' % target
|
||||||
rc = os.system(cmd)
|
rc = os.system(cmd)
|
||||||
fail = '' + getNeoLocation() + 'ImageBoot/%s/usr/bin/enigma2-or' % target
|
fail = '' + getNeoLocation() + 'ImageBoot/%s/usr/bin/enigma2-or' % target
|
||||||
@@ -399,6 +395,8 @@ def NEOBootMainEx(source, target, CopyFiles, CopyKernel, TvList, LanWlan, Sterow
|
|||||||
rc = os.system(cmd)
|
rc = os.system(cmd)
|
||||||
cmd = 'rm -r ' + getNeoLocation() + 'ImageBoot/%s/usr/bin/enigma2-or' % target
|
cmd = 'rm -r ' + getNeoLocation() + 'ImageBoot/%s/usr/bin/enigma2-or' % target
|
||||||
rc = os.system(cmd)
|
rc = os.system(cmd)
|
||||||
|
cmd = 'cp -f ' + extensions_path + 'NeoBoot/bin/version ' + getNeoLocation() + 'ImageBoot/%s/boot/blackhole/version' % target
|
||||||
|
rc = os.system(cmd)
|
||||||
|
|
||||||
# for all image:
|
# for all image:
|
||||||
if os.path.exists('%s/ImageBoot/%s/etc/rc.local' % (media, target)):
|
if os.path.exists('%s/ImageBoot/%s/etc/rc.local' % (media, target)):
|
||||||
|
|||||||
Reference in New Issue
Block a user