fix swap selector

This commit is contained in:
lulzette 2021-01-24 13:47:29 +03:00
parent 70b0087b89
commit b571133f3f

View File

@ -55,6 +55,7 @@ done
#get swap size
swapSize=$(free -m | grep "Mem" | awk '{print $2}')
echo ""
read -p "Enter extra amount of swap (empty == 512):" swapExtra
[[ -z "$swapExtra" ]] && swapExtra=512
let "swapSize += swapExtra" #add 512 mbs to swap for swap, not only hibernation