new mount

This commit is contained in:
gutosie
2020-01-20 11:06:29 +02:00
committed by GitHub
parent b665f84be0
commit 6e33f4fe6c

View File

@@ -364,9 +364,7 @@ class DevicesConf(Screen, ConfigListScreen):
if des != '' and self.list.append(res): if des != '' and self.list.append(res):
pass pass
def saveMypoints(self): def saveMypoints(self):
system('mount media -a')
system('cp -r -f /etc/fstab /etc/fstab.org')
self.Console = Console() self.Console = Console()
mycheck = False mycheck = False
for x in self['config'].list: for x in self['config'].list:
@@ -418,7 +416,7 @@ class DevicesConf(Screen, ConfigListScreen):
line = self.device_uuid + '\t' + self.mountp + '\t' + self.device_type + '\tdefaults\t0 0\n' line = self.device_uuid + '\t' + self.mountp + '\t' + self.device_type + '\tdefaults\t0 0\n'
out.write(line) out.write(line)
out.close() out.close()
#system('cp -r -f /etc/fstab /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files')
self.device_uuid2 = result.split('UUID=')[1].split(' ')[0].replace('"', '') self.device_uuid2 = result.split('UUID=')[1].split(' ')[0].replace('"', '')
if fileExists('/usr/lib/enigma2/python/Plugins/SystemPlugins/DeviceManager2'): if fileExists('/usr/lib/enigma2/python/Plugins/SystemPlugins/DeviceManager2'):
out1 = open('/etc/devicemanager.cfg', 'a') out1 = open('/etc/devicemanager.cfg', 'a')