MFC 11521

Mount config area rw before tar and then ro after tar.
This commit is contained in:
Scott Ullrich 2006-04-17 21:05:38 +00:00
parent f921cfbb38
commit 83df670bdc
2 changed files with 4 additions and 0 deletions

View File

@ -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 File

@ -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