From 55f3f12eec7a57fd4ccd1501053ae620ddb9013c Mon Sep 17 00:00:00 2001 From: Aaron Honeycutt Date: Fri, 6 May 2022 15:48:28 -0600 Subject: [PATCH] Fix ramTotal value --- install.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install.sh b/install.sh index 3bc0821..8f7859b 100644 --- a/install.sh +++ b/install.sh @@ -2,6 +2,10 @@ sudo modprobe dm-crypt sudo modprobe dm-mod +# Figure out how much RAM the system has an set a variable +# ramTotal=$(grep MemTotal /proc/meminfo | awk '{print $2 / 1024 / 1024}') +ramTotal=$(free | awk '/^Mem:/{print $2 / 1024 / 1024}' | awk -F. {'print$1'}) + # Detect and list the drives. lsblk -f