summaryrefslogtreecommitdiffstats
path: root/etc/rc.firmware
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@gmail.com>2011-09-25 17:01:03 -0400
committerScott Ullrich <sullrich@gmail.com>2011-09-25 17:01:03 -0400
commitb2a67b558c40c18a1519cd56cccaabd72e04f69d (patch)
tree0733f49fd9557cb202b5e441e57ad0e0c134db32 /etc/rc.firmware
parent0c13b5f6aa638e0d5dc5d60a2bf9160ddb207263 (diff)
downloadpfsense-b2a67b558c40c18a1519cd56cccaabd72e04f69d.zip
pfsense-b2a67b558c40c18a1519cd56cccaabd72e04f69d.tar.gz
Add option to perform full backup prior to upgrade. First commit of 2011 pfSense hackathon!
Diffstat (limited to 'etc/rc.firmware')
-rwxr-xr-xetc/rc.firmware6
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/rc.firmware b/etc/rc.firmware
index 698db67..1fb9f65 100755
--- a/etc/rc.firmware
+++ b/etc/rc.firmware
@@ -398,6 +398,12 @@ pfSenseupgrade)
touch /var/run/firmwarelock.dirty
+ if [ -f /tmp/perform_full_backup.txt ]; then
+ echo "Performing full backup" >> /conf/upgrade_log.txt
+ /etc/rc.create_full_backup
+ rm /tmp/perform_full_backup.txt
+ fi
+
touch /conf/upgrade_log.txt
echo "" >> /conf/upgrade_log.txt
OpenPOWER on IntegriCloud