From 7ef6f9df28be63d50682011da03ee6e860e1b538 Mon Sep 17 00:00:00 2001 From: Daniel Lerps Date: Wed, 9 Mar 2022 18:57:51 +0100 Subject: [PATCH] Use 4096 GB as default RAM size --- setup | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/setup b/setup index 6f64fcb..7553aa0 100755 --- a/setup +++ b/setup @@ -51,6 +51,7 @@ ISODIR=/var/lib/vz/template/iso/ HACKPXVERSION="3.2.0" OCVERSION="0.7.7" DEFAULT_VM_PREFIX="HACK-" +DEFAULT_RAM_SIZE=4096 if [ `lscpu | grep "Vendor ID" | grep -i amd | wc -l` -eq 1 ]; then OSX_PLATFORM="AMD"; else OSX_PLATFORM="INTEL"; fi @@ -240,7 +241,7 @@ do echo "Allocate RAM [MiB]: " read RAM_SIZE - if [ -z $RAM_SIZE ]; then RAM_SIZE=4000; fi; + if [ -z $RAM_SIZE ]; then RAM_SIZE=$DEFAULT_RAM_SIZE; fi; echo " " echo -n "Do you want to download and create the recovery image? [Y/N] [Default: Y]: " @@ -431,7 +432,7 @@ do echo "Allocate RAM [MiB]: " read RAM_SIZE - if [ -z $RAM_SIZE ]; then RAM_SIZE=4000; fi; + if [ -z $RAM_SIZE ]; then RAM_SIZE=$DEFAULT_RAM_SIZE; fi; echo " " echo -n "Do you want to download and create the recovery image? [Y/N] [Default: Y]: " @@ -622,7 +623,7 @@ do echo "Allocate RAM [MiB]: " read RAM_SIZE - if [ -z $RAM_SIZE ]; then RAM_SIZE=4000; fi; + if [ -z $RAM_SIZE ]; then RAM_SIZE=$DEFAULT_RAM_SIZE; fi; echo " " echo -n "Do you want to download and create the recovery image? [Y/N] [Default: Y]: " @@ -813,7 +814,7 @@ do echo "Allocate RAM [MiB]: " read RAM_SIZE - if [ -z $RAM_SIZE ]; then RAM_SIZE=4000; fi; + if [ -z $RAM_SIZE ]; then RAM_SIZE=$DEFAULT_RAM_SIZE; fi; echo " " echo -n "Do you want to download and create the recovery image? [Y/N] [Default: Y]: " @@ -1004,7 +1005,7 @@ do echo "Allocate RAM [MiB]: " read RAM_SIZE - if [ -z $RAM_SIZE ]; then RAM_SIZE=4000; fi; + if [ -z $RAM_SIZE ]; then RAM_SIZE=$DEFAULT_RAM_SIZE; fi; echo " " echo -n "Do you want to download and create the recovery image? [Y/N] [Default: Y]: "