This commit is contained in:
teldra 2021-08-18 08:36:53 +02:00
parent d70c4f0919
commit fb978e703a
2 changed files with 2 additions and 1 deletions

View File

@ -121,6 +121,8 @@ fi
ramsize="$(($(getconf _PHYS_PAGES) * $(getconf PAGE_SIZE) / (1024 * 1024)))"
ramsize="$(awk "BEGIN { printf(\"%.0f\n\", ${ramsize}/1024); }")"
set -x
if [[ "${ramsize}" -gt "0" ]] || [[ "${ramsize}" -le "2" ]]; then
test -z "${hibernate}" && swapsize="$(( ramsize * 2 ))"
test -z "${hibernate}" || swapsize="$(( ramsize * 3 ))"

View File

@ -1,7 +1,6 @@
if ! yesno "nun gehts los, sicher?" y; then
exit
fi
set -x
module start "disk" "Partition disk"
sleep=2