]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - src/initscripts/init.d/tmpfs
Merge branch 'next' of ssh://git.ipfire.org/pub/git/ipfire-2.x into asterisk-update
[people/pmueller/ipfire-2.x.git] / src / initscripts / init.d / tmpfs
index 848dec6ad4ff0fc55a97b644517576ad41128af1..2ee2ffb72f783bbe223127b80a7dc548b24534ba 100644 (file)
@@ -68,6 +68,10 @@ case "$1" in
                evaluate_retval
                ;;
        restore)
+               if ! mountpoint $RRDLOG &>/dev/null; then
+                       mount -t tmpfs -o size=64M none "$RRDLOG"
+               fi
+
                if [ -e $RRDLOG.bak/cron/new.root ]; then
                        if [ -e $RRDLOG.bak/cron/root ]; then
                                rm -f $RRDLOG.bak/cron/new.root