summaryrefslogtreecommitdiffstats
path: root/etc/rc.reboot
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-02-18 23:18:54 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-02-18 23:18:54 +0000
commit4217338a421028a81c21361b1914ad3ffb90ad41 (patch)
tree079eae94870ce0f20b7c0dce98c53479efc56444 /etc/rc.reboot
parent31a66d448b0194c7d79a6046a6889f5748c17dd9 (diff)
downloadpfsense-4217338a421028a81c21361b1914ad3ffb90ad41.zip
pfsense-4217338a421028a81c21361b1914ad3ffb90ad41.tar.gz
cd to /var before running tar operation
Diffstat (limited to 'etc/rc.reboot')
-rwxr-xr-xetc/rc.reboot2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc.reboot b/etc/rc.reboot
index 5d7b709..7a424c0 100755
--- a/etc/rc.reboot
+++ b/etc/rc.reboot
@@ -17,7 +17,7 @@ if [ "$PLATFORM" = "pfSense" ]; then
else
/etc/rc.conf_mount_rw
# Save the rrd databases to the config path.
- tar -czf /cf/conf/rrd.tgz -C / var/db/rrd/*.rrd
+ cd /var && tar -czf /cf/conf/rrd.tgz -C / var/db/rrd/*.rrd
/etc/rc.conf_mount_ro
fi
OpenPOWER on IntegriCloud