mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-25 18:32:57 +02:00
init-functions: enable autoramdisk with 400MB
The 512MB raspberry pi reserve some memory for buffers and gpu so there are a bit less than 490 MB free. Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
@@ -728,7 +728,7 @@ use_ramdisk() {
|
||||
2)
|
||||
local mem_avail="$(mem_amount)"
|
||||
|
||||
if [ ${mem_avail} -ge 490 ]; then
|
||||
if [ ${mem_avail} -ge 400 ]; then
|
||||
return 0
|
||||
else
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user