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:
Arne Fitzenreiter
2016-02-23 20:01:30 +01:00
parent 38956241bb
commit c83d161463
2 changed files with 2 additions and 1 deletions

View File

@@ -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

View File

@@ -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