summaryrefslogtreecommitdiffstats
path: root/etc/rc.shutdown
diff options
context:
space:
mode:
Diffstat (limited to 'etc/rc.shutdown')
-rwxr-xr-xetc/rc.shutdown3
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/rc.shutdown b/etc/rc.shutdown
index 3585e74..1589204 100755
--- a/etc/rc.shutdown
+++ b/etc/rc.shutdown
@@ -27,4 +27,7 @@ export PATH
PLATFORM=`cat /etc/platform`
if [ "$PLATFORM" = "pfSense" ]; then
rm -rf /tmp/*
+else
+ # Save the rrd databases to the config path.
+ tar -czf /cf/conf/rrd.tgz /var/db/rrd/*.rrd
fi
OpenPOWER on IntegriCloud