From 1e39020cda479d4344b60de4403973b70e1c8fce Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 17 Jun 2006 17:00:20 +0000 Subject: MFC 12687 Silent tar: Removing leading '/' from member names on reboot --- etc/rc.reboot | 2 +- etc/rc.shutdown | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'etc') diff --git a/etc/rc.reboot b/etc/rc.reboot index 6088c5c..5d7b709 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 /var/db/rrd/*.rrd + tar -czf /cf/conf/rrd.tgz -C / var/db/rrd/*.rrd /etc/rc.conf_mount_ro fi diff --git a/etc/rc.shutdown b/etc/rc.shutdown index 09f1981..0a40d4f 100755 --- a/etc/rc.shutdown +++ b/etc/rc.shutdown @@ -30,6 +30,6 @@ if [ "$PLATFORM" = "pfSense" ]; then else /etc/rc.conf_mount_rw # Save the rrd databases to the config path. - tar -czf /cf/conf/rrd.tgz /var/db/rrd/*.rrd + tar -czf /cf/conf/rrd.tgz -C / var/db/rrd/*.rrd /etc/rc.conf_mount_ro fi -- cgit v1.1