mirror of
https://github.com/gutosie/neoboot.git
synced 2025-10-28 09:56:05 +01:00
Update tools.py
This commit is contained in:
@@ -2388,9 +2388,11 @@ class Opis(Screen):
|
|||||||
|
|
||||||
def mbdelete(self, answer):
|
def mbdelete(self, answer):
|
||||||
if answer is True:
|
if answer is True:
|
||||||
os.system('touch /tmp/.upneo; chattr -i ' + LinkNeoBoot + '/plugin.py')
|
for line in open("/etc/hostname"):
|
||||||
if fileExists('' + LinkNeoBoot + '/plugin.pyo'):
|
if "dm500hd" not in line or "dm800" not in line or "dm800se" not in line or "dm8000" not in line:
|
||||||
os.system('chattr -i ' + LinkNeoBoot + '/plugin.pyo')
|
os.system('touch /tmp/.upneo; chattr -i ' + LinkNeoBoot + '/plugin.py')
|
||||||
|
if fileExists('' + LinkNeoBoot + '/plugin.pyo'):
|
||||||
|
os.system('chattr -i ' + LinkNeoBoot + '/plugin.pyo')
|
||||||
if fileExists('/etc/rcS.d/S99neo.local'):
|
if fileExists('/etc/rcS.d/S99neo.local'):
|
||||||
system('rm -r /etc/rcS.d/S99neo.local')
|
system('rm -r /etc/rcS.d/S99neo.local')
|
||||||
if fileExists('/etc/name'):
|
if fileExists('/etc/name'):
|
||||||
|
|||||||
Reference in New Issue
Block a user