Merge pull request #169 from fbelavenuto/ram-warning

Adding low memory warning
This commit is contained in:
Fabio Belavenuto 2022-09-15 14:06:18 -03:00 committed by GitHub
commit dc8305bcd7
19 changed files with 9 additions and 3 deletions

2
.gitignore vendored
View File

@ -4,7 +4,7 @@ arpl*.img
arpl*.vmdk
*.zip
.buildroot
test.sh
test*.sh
docker/Dockerfile
docker/cache
*.bak

View File

@ -1 +1 @@
0.4-alpha7
0.4-alpha8

View File

@ -1,5 +1,5 @@
ARPL_VERSION="0.4-alpha7"
ARPL_VERSION="0.4-alpha8"
# Define paths
TMP_PATH="/tmp"

View File

@ -180,6 +180,12 @@ echo -e "User config is on \033[1;32m${USER_CONFIG_FILE}\033[0m"
echo -e "Default SSH Root password is \033[1;31mRedp1lL-1s-4weSomE\033[0m"
echo
# Check memory
RAM=`free -m | awk '/Mem:/{print$2}'`
if [ ${RAM} -le 3500 ]; then
echo -e "\033[1;33mYou have less than 4GB of RAM, if errors occur in loader creation, please increase the amount of memory.\033[0m\n"
fi
mkdir -p "${ADDONS_PATH}"
mkdir -p "${LKM_PATH}"
mkdir -p "${MODULES_PATH}"