From 608397f19135552cbdb4a8cbaea19237ef7d511e Mon Sep 17 00:00:00 2001 From: gutosie Date: Fri, 31 Dec 2021 19:00:02 +0200 Subject: [PATCH] Update plugin.py --- NeoBoot/plugin.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/NeoBoot/plugin.py b/NeoBoot/plugin.py index 2f6a2d3..2385d8b 100644 --- a/NeoBoot/plugin.py +++ b/NeoBoot/plugin.py @@ -842,7 +842,10 @@ class NeoBootImageChoose(Screen): if not fileExists('' + LinkNeoBoot + '/files/neo.sh'): getMountPointNeo() - + + if os.path.exists('/media/hdd/swapfile') or os.path.exists('/media/usb/swapfile') or os.path.exists('/swapfile'): + system('swapon -a') + if fileExists('/tmp/.init_reboot'): system('rm /tmp/.init_reboot')