]> git.ipfire.org Git - people/jschlag/ipfire-2.x.git/blobdiff - src/initscripts/init.d/vnstat
ramdisk: Make usage of ramdisk configurable
[people/jschlag/ipfire-2.x.git] / src / initscripts / init.d / vnstat
index 2e4a87874fb9f76a8645d7aa599e22bee74ee279..2593afe4db358c87af01ae2eda06d7a2c1c47314 100755 (executable)
@@ -12,7 +12,7 @@ fi
 
 case "$1" in
        start)
-               if [ "$FORCE" == '1' ] || [ "$(mem_amount)" -gt "490" ];then
+               if use_ramdisk; then
                        if ! mountpoint $VNSTATLOG &>/dev/null; then
                                boot_mesg "Mount vnstat ramdisk..."
                                if [ $(find "$VNSTATLOG" | wc -l) -ne 1 ]; then