]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
init-functions: enable autoramdisk with 400MB
authorArne Fitzenreiter <arne_f@ipfire.org>
Tue, 23 Feb 2016 19:01:30 +0000 (20:01 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Tue, 23 Feb 2016 19:01:30 +0000 (20:01 +0100)
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>
config/rootfiles/core/99/filelists/files
src/initscripts/init.d/functions

index 5fe6b73901992110d5c3b95e8dd4e3c51392f841..1202ea84855286fa51e7db7172ca2b894cf92342 100644 (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
index 0d9b013ea0522a239394cbfb9dc0d3124cc65b00..c00f65922c97450e74aae3cc3f0c28f9c36f2251 100644 (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