Update plugin.py

This commit is contained in:
gutosie
2022-01-19 11:11:06 +02:00
committed by GitHub
parent ae3a621777
commit be9b092950

View File

@@ -739,7 +739,9 @@ class NeoBootInstallation(Screen):
def RebootSTB(self, answer):
if answer is True:
os.system('sync && echo 3 > /proc/sys/vm/drop_caches; reboot -d -f')
cmd = 'echo 3 > /proc/sys/vm/drop_caches; shutdown -r now && reboot -d -f & '
rc = os.system(cmd)
#os.system('sync && echo 3 > /proc/sys/vm/drop_caches; reboot -d -f')
else:
self.close()