[feat] Add check for hardware requirements

This commit is contained in:
William Wernert
2020-05-04 15:59:07 -04:00
parent d9dff52104
commit 6785b9e4d2
4 changed files with 61 additions and 2 deletions

View File

@@ -3,6 +3,9 @@
total_mem=$(grep MemTotal /proc/meminfo | awk '{print $2}' | sed -r 's/.{3}$//')
export total_mem
total_mem_hr=$(grep MemTotal /proc/meminfo | awk '{ printf("%.0f", $2/1024/1024); }')
export total_mem_hr
num_cpu_cores=$(nproc)
export num_cpu_cores