mirror of
https://github.com/gutosie/neoboot.git
synced 2025-11-03 12:45:47 +01:00
Update extract.py
This commit is contained in:
@@ -260,6 +260,24 @@ def NEOBootMainEx(source, target, CopyFiles, CopyKernel, TvList, LanWlan, Sterow
|
|||||||
rc = os.system(cmd)
|
rc = os.system(cmd)
|
||||||
os.system('echo "System drivers copied..."')
|
os.system('echo "System drivers copied..."')
|
||||||
|
|
||||||
|
if Montowanie == 'True':
|
||||||
|
if os.path.exists('%s/ImageBoot/%s/etc/fstab' % (media, target)):
|
||||||
|
cmd = 'mv %s/ImageBoot/%s/etc/fstab %s/ImageBoot/%s/etc/fstab.org' % (media,
|
||||||
|
target,
|
||||||
|
media,
|
||||||
|
target)
|
||||||
|
rc = os.system(cmd)
|
||||||
|
if os.path.exists('%s/ImageBoot/%s/etc/init.d/volatile-media.sh' % (media, target)):
|
||||||
|
cmd = 'mv %s/ImageBoot/%s/etc/init.d/volatile-media.sh %s/ImageBoot/%s/etc/init.d/volatile-media.sh.org' % (media,
|
||||||
|
target,
|
||||||
|
media,
|
||||||
|
target)
|
||||||
|
rc = os.system(cmd)
|
||||||
|
cmd = 'cp -r /etc/fstab %s/ImageBoot/%s/etc/fstab' % (media, target)
|
||||||
|
rc = os.system(cmd)
|
||||||
|
cmd = 'cp -r /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/S50fat.sh %s/ImageBoot/%s/etc/rcS.d' % (media, target)
|
||||||
|
rc = os.system(cmd)
|
||||||
|
|
||||||
if InstallSettings == 'True':
|
if InstallSettings == 'True':
|
||||||
if not os.path.exists('%s/ImageBoot/%s/etc/enigma2' % (media, target)):
|
if not os.path.exists('%s/ImageBoot/%s/etc/enigma2' % (media, target)):
|
||||||
cmd = 'mkdir -p %s/ImageBoot/%s/etc/enigma2' % (media, target)
|
cmd = 'mkdir -p %s/ImageBoot/%s/etc/enigma2' % (media, target)
|
||||||
|
|||||||
Reference in New Issue
Block a user