From d491d6ec87712e668d04963f2fcd4c85d086457a Mon Sep 17 00:00:00 2001 From: gutosie Date: Fri, 21 Jan 2022 20:20:49 +0200 Subject: [PATCH] Update tools.py --- NeoBoot/files/tools.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/NeoBoot/files/tools.py b/NeoBoot/files/tools.py index fa1373d..ddaf954 100644 --- a/NeoBoot/files/tools.py +++ b/NeoBoot/files/tools.py @@ -2240,7 +2240,9 @@ class Opis(Screen): self.close() else: if answer is True: - os.system('touch /tmp/.upneo; chattr -i ' + LinkNeoBoot + '/plugin.py; chattr -i ' + LinkNeoBoot + '/plugin.pyo') + os.system('touch /tmp/.upneo; chattr -i ' + LinkNeoBoot + '/plugin.py') + if fileExists('' + LinkNeoBoot +'/plugin.pyo'): + cmd3 = 'chattr -i ' + target + '' + LinkNeoBoot +'/plugin.pyo' if fileExists('' + LinkNeoBoot + '/.location'): system('rm -f ' + LinkNeoBoot + '/.location') if fileExists('/usr/bin/curl'):