mirror of
https://mojerepo.cf/NeoBoot/NeoBoot-9.git
synced 2025-10-30 17:15:46 +01:00
8.08 big update
This commit is contained in:
@@ -246,10 +246,8 @@ def NEOBootMainEx(source, target, stopenigma, CopyFiles, CopyKernel, TvList, Mon
|
|||||||
rc = os.system(cmd)
|
rc = os.system(cmd)
|
||||||
cmd = 'cp -r /etc/fstab %s/ImageBoot/%s/etc/fstab' % (media, target)
|
cmd = 'cp -r /etc/fstab %s/ImageBoot/%s/etc/fstab' % (media, target)
|
||||||
rc = os.system(cmd)
|
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)
|
# 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)
|
# rc = os.system(cmd)
|
||||||
|
|
||||||
###########################################################
|
|
||||||
|
|
||||||
if os.path.exists('%s/ImageBoot/%s/etc/init.d/udev' % (media, target)):
|
if os.path.exists('%s/ImageBoot/%s/etc/init.d/udev' % (media, target)):
|
||||||
filename = '%s/ImageBoot/%s/etc/init.d/udev' % (media, target)
|
filename = '%s/ImageBoot/%s/etc/init.d/udev' % (media, target)
|
||||||
@@ -266,7 +264,7 @@ def NEOBootMainEx(source, target, stopenigma, CopyFiles, CopyKernel, TvList, Mon
|
|||||||
out.close()
|
out.close()
|
||||||
os.rename(filename2, filename)
|
os.rename(filename2, filename)
|
||||||
|
|
||||||
cmd = 'echo "/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/neom" >> %s/ImageBoot/%s/etc/init.d/udev' % (media, target)
|
cmd = 'echo "mount -a" >> %s/ImageBoot/%s/etc/init.d/udev' % (media, target)
|
||||||
rc = os.system(cmd)
|
rc = os.system(cmd)
|
||||||
cmd = 'echo "exit 0" >> %s/ImageBoot/%s/etc/init.d/udev' % (media, target)
|
cmd = 'echo "exit 0" >> %s/ImageBoot/%s/etc/init.d/udev' % (media, target)
|
||||||
rc = os.system(cmd)
|
rc = os.system(cmd)
|
||||||
@@ -274,7 +272,7 @@ def NEOBootMainEx(source, target, stopenigma, CopyFiles, CopyKernel, TvList, Mon
|
|||||||
if os.path.exists('%s/ImageBoot/%s/etc/init.d/mdev'% (media, target)):
|
if os.path.exists('%s/ImageBoot/%s/etc/init.d/mdev'% (media, target)):
|
||||||
cmd = 'echo " " >> %s/ImageBoot/%s/etc/init.d/mdev' % (media, target)
|
cmd = 'echo " " >> %s/ImageBoot/%s/etc/init.d/mdev' % (media, target)
|
||||||
rc = os.system(cmd)
|
rc = os.system(cmd)
|
||||||
cmd = 'echo "/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/neom" >> %s/ImageBoot/%s/etc/init.d/mdev' % (media, target)
|
cmd = 'echo "mount -a" >> %s/ImageBoot/%s/etc/init.d/mdev' % (media, target)
|
||||||
rc = os.system(cmd)
|
rc = os.system(cmd)
|
||||||
|
|
||||||
if LanWlan == 'True':
|
if LanWlan == 'True':
|
||||||
@@ -401,14 +399,28 @@ def NEOBootMainEx(source, target, stopenigma, CopyFiles, CopyKernel, TvList, Mon
|
|||||||
elif not os.path.exists('/usr/lib/enigma2/python/Plugins/Extensions/MediaPortal'):
|
elif not os.path.exists('/usr/lib/enigma2/python/Plugins/Extensions/MediaPortal'):
|
||||||
os.system('echo "MediaPortal not found."')
|
os.system('echo "MediaPortal not found."')
|
||||||
|
|
||||||
|
# for all image:
|
||||||
if not os.path.exists('' + getNeoLocation() + 'ImageBoot/.without_copying'):
|
if not os.path.exists('' + getNeoLocation() + 'ImageBoot/.without_copying'):
|
||||||
#if os.path.exists('' + getNeoLocation() + 'ImageBoot'):
|
if os.path.exists('%s/ImageBoot/%s/etc/init.d/udev' % (media, target)):
|
||||||
|
filename = '%s/ImageBoot/%s/etc/init.d/bootmisc.sh' % (media, target)
|
||||||
|
if os.path.exists(filename):
|
||||||
|
filename2 = filename + '.tmp'
|
||||||
|
out = open(filename2, 'w')
|
||||||
|
f = open(filename, 'r')
|
||||||
|
for line in f.readlines():
|
||||||
|
if line.find('exit 0') != -1:
|
||||||
|
line = '\n'
|
||||||
|
out.write(line)
|
||||||
|
|
||||||
|
f.close()
|
||||||
|
out.close()
|
||||||
|
os.rename(filename2, filename)
|
||||||
|
|
||||||
|
cmd = 'echo "/etc/init.d/networking stop; /etc/init.d/networking start;" >> %s/ImageBoot/%s/etc/init.d/bootmisc.sh' % (media, target)
|
||||||
|
rc = os.system(cmd)
|
||||||
|
cmd = 'echo "exit 0" >> %s/ImageBoot/%s/etc/init.d/bootmisc.sh' % (media, target)
|
||||||
|
rc = os.system(cmd)
|
||||||
|
|
||||||
# if getFSTAB2() == 'OKinstall':
|
|
||||||
|
|
||||||
# os.system(' echo ' + fstablines + ' >> %s/ImageBoot/%s/etc/fstab' % (media, target))
|
|
||||||
|
|
||||||
namefile = media + '/ImageBoot/' + target + '/etc/fstab'
|
namefile = media + '/ImageBoot/' + target + '/etc/fstab'
|
||||||
namefile2 = namefile + '.tmp'
|
namefile2 = namefile + '.tmp'
|
||||||
|
|||||||
Reference in New Issue
Block a user