Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MFC 11521

Mount config area rw before tar and then ro after tar.
  • Loading branch information...
commit 83df670bdcd40db8c1180f7947e2957a2ed669f2 1 parent f921cfb
Scott Ullrich authored
Showing with 4 additions and 0 deletions.
  1. +2 −0  etc/rc.reboot
  2. +2 −0  etc/rc.shutdown
View
2  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
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.