From c83d09c1e6bb294436d27c5a405f257b65237381 Mon Sep 17 00:00:00 2001 From: gutosie Date: Fri, 19 Feb 2021 09:19:38 +0200 Subject: [PATCH] Add files via upload --- NeoBoot/files/tools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NeoBoot/files/tools.py b/NeoBoot/files/tools.py index 3be16d8..e905432 100644 --- a/NeoBoot/files/tools.py +++ b/NeoBoot/files/tools.py @@ -1673,7 +1673,7 @@ class CreateSwap(Screen): cmd3 = 'swapon /media/hdd/swapfile' cmd4 = 'echo "/media/hdd/swapfile swap swap defaults 0 0 " >> /etc/fstab' cmd5 = 'echo "/sbin/swapon /hdd/swapfile; swapon -a " > /etc/init.d/rcS.local' - cmd6 = 'chmod 755 /etc/init.d/rcS.local; /sbin/swapon /hdd/swapfile' + cmd6 = 'chmod 755 /etc/init.d/rcS.local; chmod 755 /media/hdd/swapfile; /sbin/swapon /hdd/swapfile' cmd7 = "echo -e '\n\n%s '" % _('Creation complete swap 512MB') self.session.open(Console, _('NeoBoot....'), [cmd0, cmd1, @@ -1693,7 +1693,7 @@ class CreateSwap(Screen): cmd3 = 'swapon /media/usb/swapfile' cmd4 = 'echo "/media/usb/swapfile swap swap defaults 0 0 " >> /etc/fstab' cmd5 = 'echo "/sbin/swapon /usb/swapfile; swapon -a " > /etc/init.d/rcS.local' - cmd6 = 'chmod 755 /etc/init.d/rcS.local; /sbin/swapon /usb/swapfile' + cmd6 = 'chmod 755 /etc/init.d/rcS.local; chmod 755 /media/usb/swapfile; /sbin/swapon /usb/swapfile' cmd7 = "echo -e '\n\n%s '" % _('Creation complete swap 512MB') self.session.open(Console, _('NeoBoot....'), [cmd0, cmd1,