mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-23 09:22:59 +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:
@@ -3,6 +3,7 @@ etc/issue
|
||||
etc/dracut.conf
|
||||
etc/ppp/ip-up
|
||||
etc/rc.d/init.d/firewall
|
||||
etc/rc.d/init.d/functions
|
||||
etc/rc.d/init.d/networking/dhcpcd.exe
|
||||
etc/modprobe.d/nf_conntrack.conf
|
||||
srv/web/ipfire/cgi-bin/logs.cgi/firewalllog.dat
|
||||
|
||||
@@ -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