summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2015-06-02 11:51:52 -0500
committerChris Buechler <cmb@pfsense.org>2015-06-02 11:56:21 -0500
commitf135a010871ca9e230861e1c4b7a832e8a0bf077 (patch)
tree1cf1e8e177c7c4617167013bb7df6c316b4df7c3 /etc
parent8c288bce6d29c765a8654cd8547a4478accda483 (diff)
downloadpfsense-f135a010871ca9e230861e1c4b7a832e8a0bf077.zip
pfsense-f135a010871ca9e230861e1c4b7a832e8a0bf077.tar.gz
trigger a reboot after restoration of full backup. Ticket #4107
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc.restore_full_backup3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/rc.restore_full_backup b/etc/rc.restore_full_backup
index 05bb060..b916b72 100755
--- a/etc/rc.restore_full_backup
+++ b/etc/rc.restore_full_backup
@@ -11,7 +11,8 @@ if [ `tar tzPf $1 /etc/rc 2>/dev/null` ]; then
EXCLUDE=""
fi
tar xzPfU $1 $EXCLUDE -C / 2>/var/etc/restore_log.txt
- echo "Restore of $1 complete."
+ echo "Restore of $1 complete. Rebooting"
+ /sbin/reboot
else
echo " Error."
echo "File not found or invalid backup file. Available backups:"
OpenPOWER on IntegriCloud