mirror of
				https://mojerepo.cf/NeoBoot/NeoBoot-9.git
				synced 2025-10-31 03:45:47 +01:00 
			
		
		
		
	8.15
This commit is contained in:
		| @@ -431,6 +431,54 @@ 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; chmod 0755 /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; chmod 0755 /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