Skip to content

Commit 15767e7

Browse files
committed
RAM size fix for Rpi4
1 parent 2c88ee8 commit 15767e7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

distros/raspberry_pi/install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ if [ "$(get_install_stage)" -eq 2 ]; then
426426
set_status "[install.sh] - Detected RAM: ${total_ram} kB"
427427

428428
# Conditions
429-
if [ "$total_ram" -lt 8000000 ]; then
429+
if [ "$total_ram" -lt 7000000 ]; then
430430
set_error "[install.sh] - Not enough RAM for Web3 Pi. Minimum required is 8 GB"
431431
terminateScript
432432
elif [ "$total_ram" -ge 15000000 ]; then
@@ -440,7 +440,7 @@ if [ "$(get_install_stage)" -eq 2 ]; then
440440
echo "vm.dirty_background_ratio=10"
441441
echo "vm.dirty_ratio=20"
442442
} >> /etc/sysctl.conf
443-
elif [ "$total_ram" -ge 8000000 ]; then
443+
elif [ "$total_ram" -ge 7000000 ]; then
444444
set_status "[install.sh] - Setting vm.swappiness to 80"
445445
# Enable dphys-swapfile service
446446
systemctl enable dphys-swapfile

0 commit comments

Comments
 (0)