From 4c76830762773cb00b945a390a4117ac31af0e13 Mon Sep 17 00:00:00 2001 From: gutosie Date: Fri, 12 Jan 2024 10:03:14 +0200 Subject: [PATCH] Update tools.py --- NeoBoot/files/tools.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/NeoBoot/files/tools.py b/NeoBoot/files/tools.py index 33a98e2..4a1c939 100644 --- a/NeoBoot/files/tools.py +++ b/NeoBoot/files/tools.py @@ -974,7 +974,6 @@ class MyUpgrade2(Screen): periodo = '/usr/lib/periodon' testinout = '/usr/lib/enigma2/python/Tools/Testinout.p*' zerotier = '/var/lib/zerotier-one/identity.secret' - os.system('mv /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/userscript.sh /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/S99neo.local') S99neo = '/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/S99neo.local' self.activityTimer.stop() f2 = open('%sImageBoot/.neonextboot' % getNeoLocation(), 'r') @@ -992,6 +991,9 @@ class MyUpgrade2(Screen): target2 = dirfile + '/usr/lib/enigma2/python/Tools/' target3 = dirfile + '/var/lib/zerotier-one/' target4 = dirfile + '/etc/rcS.d/' + os.system('mv /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/userscript.sh /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/S99neo.local') + target4 = dirfile + '/etc/rcS.d/' + os.system('mv /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/S99neo.local /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/userscript.sh') cmd = 'rm -r ' + target + ' > /dev/null 2>&1' system(cmd) cmd = 'cp -af ' + LinkNeoBoot + ' ' + target @@ -1022,7 +1024,6 @@ class MyUpgrade2(Screen): out = open('%sImageBoot/.version' % getNeoLocation(), 'w') out.write(PLUGINVERSION) out.close() - os.system('mv /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/S99neo.local /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/userscript.sh') self.myClose(_('NeoBoot successfully updated. You can restart the plugin now.\nHave fun !!')) def myClose(self, message):