mirror of
https://mojerepo.cf/NeoBoot/NeoBoot-9.git
synced 2025-11-01 01:45:52 +01:00
fix chmod file neo_location
This commit is contained in:
@@ -1097,7 +1097,7 @@ def NEOBootExtract(source, target, ZipDelete, BlackHole):
|
|||||||
cmd = 'chmod 777 ' + getNeoLocation() + 'ImagesUpload/rootfs.tar.xz; tar -jJxvf ' + getNeoLocation() + 'ImagesUpload/rootfs.tar.xz -C ' + getNeoLocation() + 'ImageBoot/' + target + ' > /dev/null 2>&1'
|
cmd = 'chmod 777 ' + getNeoLocation() + 'ImagesUpload/rootfs.tar.xz; tar -jJxvf ' + getNeoLocation() + 'ImagesUpload/rootfs.tar.xz -C ' + getNeoLocation() + 'ImageBoot/' + target + ' > /dev/null 2>&1'
|
||||||
rc = os.system(cmd)
|
rc = os.system(cmd)
|
||||||
elif os.path.exists('' + getNeoLocation() + 'ImagesUpload/hd51/rootfs.tar.bz2'):
|
elif os.path.exists('' + getNeoLocation() + 'ImagesUpload/hd51/rootfs.tar.bz2'):
|
||||||
os.system('echo "Please wait. System installation HD51 "')
|
os.system('echo "Please wait. System installation AX 4K Box HD51 "')
|
||||||
cmd = 'chmod 777 ' + getNeoLocation() + 'ImagesUpload/hd51/rootfs.tar.bz2; tar -jxvf ' + getNeoLocation() + 'ImagesUpload/hd51/rootfs.tar.bz2 -C ' + getNeoLocation() + 'ImageBoot/' + target + ' > /dev/null 2>&1'
|
cmd = 'chmod 777 ' + getNeoLocation() + 'ImagesUpload/hd51/rootfs.tar.bz2; tar -jxvf ' + getNeoLocation() + 'ImagesUpload/hd51/rootfs.tar.bz2 -C ' + getNeoLocation() + 'ImageBoot/' + target + ' > /dev/null 2>&1'
|
||||||
rc = os.system(cmd)
|
rc = os.system(cmd)
|
||||||
elif os.path.exists('' + getNeoLocation() + 'ImagesUpload/hd60'):
|
elif os.path.exists('' + getNeoLocation() + 'ImagesUpload/hd60'):
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ import time
|
|||||||
# warranty, use at YOUR own risk.
|
# warranty, use at YOUR own risk.
|
||||||
|
|
||||||
PLUGINVERSION = '8.00'
|
PLUGINVERSION = '8.00'
|
||||||
UPDATEVERSION = '8.05'
|
UPDATEVERSION = '8.06'
|
||||||
|
|
||||||
def Freespace(dev):
|
def Freespace(dev):
|
||||||
statdev = os.statvfs(dev)
|
statdev = os.statvfs(dev)
|
||||||
@@ -720,7 +720,7 @@ class NeoBootInstallation(Screen):
|
|||||||
|
|
||||||
os.system(' ln -sfn ' + getNeoLocation() + 'ImageBoot/.neonextboot /etc/neoimage; chmod 644 ' + getNeoLocation() + 'ImagesUpload/.kernel/*; ln -sfn ' + getNeoLocation() + 'ImageBoot /etc/imageboot; rm -r /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/target; chmod 0755 /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/kernel.sh ')
|
os.system(' ln -sfn ' + getNeoLocation() + 'ImageBoot/.neonextboot /etc/neoimage; chmod 644 ' + getNeoLocation() + 'ImagesUpload/.kernel/*; ln -sfn ' + getNeoLocation() + 'ImageBoot /etc/imageboot; rm -r /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/target; chmod 0755 /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/kernel.sh ')
|
||||||
|
|
||||||
os.system('/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/neo_location; sleep 2; chmod 0755 /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/neom')
|
os.system('chmod 0755 /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/neo_location; /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/neo_location; sleep 2; chmod 0755 /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/neom')
|
||||||
|
|
||||||
if os.path.isfile('/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location'):
|
if os.path.isfile('/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location'):
|
||||||
if getLabelDisck() != 'LABEL=':
|
if getLabelDisck() != 'LABEL=':
|
||||||
@@ -912,7 +912,7 @@ valign="center" backgroundColor="black" transparent="1" foregroundColor="white"
|
|||||||
system('chmod 755 /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/neo.sh')
|
system('chmod 755 /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/neo.sh')
|
||||||
|
|
||||||
if not fileExists('/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/neom'):
|
if not fileExists('/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/neom'):
|
||||||
os.system('/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/neo_location; chmod 0755 /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/neom')
|
os.system('chmod 0755 /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/neo_location; /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/neo_location; chmod 0755 /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/neom')
|
||||||
|
|
||||||
|
|
||||||
if fileExists('/tmp/.init_reboot'):
|
if fileExists('/tmp/.init_reboot'):
|
||||||
|
|||||||
@@ -89,10 +89,40 @@ class InstallImage(Screen, ConfigListScreen):
|
|||||||
self.target = ConfigText(fixed_size=False)
|
self.target = ConfigText(fixed_size=False)
|
||||||
self.stopenigma = ConfigYesNo(default=False)
|
self.stopenigma = ConfigYesNo(default=False)
|
||||||
self.CopyFiles = ConfigYesNo(default=True)
|
self.CopyFiles = ConfigYesNo(default=True)
|
||||||
|
if getCPUtype() == 'ARMv7' and getCPUSoC() or getBoxHostName() == ['7444s',
|
||||||
|
'7376',
|
||||||
|
'7252s',
|
||||||
|
'7278',
|
||||||
|
'72604',
|
||||||
|
'vuultimo4k'
|
||||||
|
'vusolo4k',
|
||||||
|
'vuuno4k',
|
||||||
|
'vuuno4kse',
|
||||||
|
'vuduo4k',
|
||||||
|
'vuzero4k']:
|
||||||
self.CopyKernel = ConfigYesNo(default=True)
|
self.CopyKernel = ConfigYesNo(default=True)
|
||||||
|
else:
|
||||||
|
self.CopyKernel = ConfigYesNo(default=False)
|
||||||
self.TvList = ConfigYesNo(default=False)
|
self.TvList = ConfigYesNo(default=False)
|
||||||
self.Montowanie = ConfigYesNo(default=False)
|
self.Montowanie = ConfigYesNo(default=False)
|
||||||
self.LanWlan = ConfigYesNo(default=False)
|
self.LanWlan = ConfigYesNo(default=False)
|
||||||
|
if getCPUtype() == 'ARMv7' and getCPUSoC() or getBoxHostName() == ['osmio4k',
|
||||||
|
'ax60',
|
||||||
|
'sf8008',
|
||||||
|
'bcm7251',
|
||||||
|
'sf4008',
|
||||||
|
'et1x000',
|
||||||
|
'bcm7251s',
|
||||||
|
'h7',
|
||||||
|
'hi3798mv200'
|
||||||
|
'zgemmah9s',
|
||||||
|
'bcm7252s',
|
||||||
|
'gbquad4k',
|
||||||
|
'ustym4kpro',
|
||||||
|
'3798mv200'
|
||||||
|
'dm900'] :
|
||||||
|
self.Sterowniki = ConfigYesNo(default=True)
|
||||||
|
else:
|
||||||
self.Sterowniki = ConfigYesNo(default=False)
|
self.Sterowniki = ConfigYesNo(default=False)
|
||||||
self.InstallSettings = ConfigYesNo(default=False)
|
self.InstallSettings = ConfigYesNo(default=False)
|
||||||
self.ZipDelete = ConfigYesNo(default=False)
|
self.ZipDelete = ConfigYesNo(default=False)
|
||||||
|
|||||||
Reference in New Issue
Block a user