mirror of
				https://mojerepo.cf/NeoBoot/NeoBoot-9.git
				synced 2025-10-31 03:35:47 +01:00 
			
		
		
		
	8.15
This commit is contained in:
		| @@ -431,54 +431,6 @@ class DevicesConf(Screen, ConfigListScreen): | |||||||
|                 out2.write(line2) |                 out2.write(line2) | ||||||
|                 out2.close() |                 out2.close() | ||||||
|                                                            |                                                            | ||||||
|             if fileExists('/etc/init.d/udev'): |  | ||||||
|                 filename = '/etc/init.d/udev' |  | ||||||
|                 if os.path.exists(filename): |  | ||||||
|  |  | ||||||
|                     filename2 = filename + '.tmp' |  | ||||||
|                     out = open(filename2, 'w') |  | ||||||
|                     f = open(filename, 'r') |  | ||||||
|                     for line in f.readlines(): |  | ||||||
|                         if line.find('mount -a') != -1: |  | ||||||
|                             line = '\n' |  | ||||||
|                         out.write(line) |  | ||||||
|  |  | ||||||
|                     f.close() |  | ||||||
|                     out.close() |  | ||||||
|                     os.rename(filename2, 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) |  | ||||||
|                     os.system('echo "mount -a" >> /etc/init.d/udev') |  | ||||||
|  |  | ||||||
|             if fileExists('/etc/init.d/mdev'): |  | ||||||
|                 filename = '/etc/init.d/mdev' |  | ||||||
|                 if os.path.exists(filename): |  | ||||||
|  |  | ||||||
|                     filename2 = filename + '.tmp' |  | ||||||
|                     out = open(filename2, 'w') |  | ||||||
|                     f = open(filename, 'r') |  | ||||||
|                     for line in f.readlines(): |  | ||||||
|                         if line.find('mount -a') != -1: |  | ||||||
|                             line = '\n' |  | ||||||
|                         out.write(line) |  | ||||||
|  |  | ||||||
|                     f.close() |  | ||||||
|                     out.close() |  | ||||||
|                     os.rename(filename2, filename) |  | ||||||
|                      |  | ||||||
|                     system('echo "" >> /etc/init.d/mdev; echo "mount -a" >> /etc/init.d/mdev') |  | ||||||
|                                                            |  | ||||||
| class DeviceManagerSummary(Screen): | class DeviceManagerSummary(Screen): | ||||||
|     def __init__(self, session, parent): |     def __init__(self, session, parent): | ||||||
|         Screen.__init__(self, session, parent=parent) |         Screen.__init__(self, session, parent=parent) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user