diff --git a/etc/rc.reboot b/etc/rc.reboot index 868851dd6a..6088c5cb7f 100755 --- a/etc/rc.reboot +++ b/etc/rc.reboot @@ -15,8 +15,10 @@ PLATFORM=`cat /etc/platform` if [ "$PLATFORM" = "pfSense" ]; then rm -rf /tmp/* else + /etc/rc.conf_mount_rw # Save the rrd databases to the config path. tar -czf /cf/conf/rrd.tgz /var/db/rrd/*.rrd + /etc/rc.conf_mount_ro fi sleep 1 diff --git a/etc/rc.shutdown b/etc/rc.shutdown index 158920446b..09f1981d2f 100755 --- a/etc/rc.shutdown +++ b/etc/rc.shutdown @@ -28,6 +28,8 @@ PLATFORM=`cat /etc/platform` if [ "$PLATFORM" = "pfSense" ]; then rm -rf /tmp/* else + /etc/rc.conf_mount_rw # Save the rrd databases to the config path. tar -czf /cf/conf/rrd.tgz /var/db/rrd/*.rrd + /etc/rc.conf_mount_ro fi