This commit is contained in:
teldra 2021-08-18 08:46:18 +02:00
parent 2eed14b972
commit 431f7bf315

View File

@ -119,11 +119,7 @@ if check yesno "Do you want to hibernate?" "y"; then
fi
ramsize="$(($(getconf _PHYS_PAGES) * $(getconf PAGE_SIZE) / (1024 * 1024)))"
echo 1 $ramsize
ramsize="$(awk "BEGIN { printf(\"%.0f\n\", ${ramsize}/1024); }")"
echo 2 $ramsize
set -x
if [[ "${ramsize}" -gt "0" ]] && [[ "${ramsize}" -le "2" ]]; then
test -z "${hibernate}" && swapsize="$(( ramsize * 2 ))"