Fix ramTotal value

This commit is contained in:
Aaron Honeycutt 2022-05-06 15:48:28 -06:00
parent 75c859f33e
commit 55f3f12eec

View file

@ -2,6 +2,10 @@
sudo modprobe dm-crypt sudo modprobe dm-crypt
sudo modprobe dm-mod 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. # Detect and list the drives.
lsblk -f lsblk -f