mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
MFC 11521
Mount config area rw before tar and then ro after tar.
This commit is contained in:
parent
f921cfbb38
commit
83df670bdc
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user