mirror of
https://github.com/RROrg/rr.git
synced 2025-06-21 05:51:05 +08:00
Merge pull request #169 from fbelavenuto/ram-warning
Adding low memory warning
This commit is contained in:
commit
dc8305bcd7
2
.gitignore
vendored
2
.gitignore
vendored
@ -4,7 +4,7 @@ arpl*.img
|
||||
arpl*.vmdk
|
||||
*.zip
|
||||
.buildroot
|
||||
test.sh
|
||||
test*.sh
|
||||
docker/Dockerfile
|
||||
docker/cache
|
||||
*.bak
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
ARPL_VERSION="0.4-alpha7"
|
||||
ARPL_VERSION="0.4-alpha8"
|
||||
|
||||
# Define paths
|
||||
TMP_PATH="/tmp"
|
||||
|
@ -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}"
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user