summaryrefslogtreecommitdiffstats
path: root/etc/rc.restore_full_backup
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:53:19 -0500
commit813d71c1a3100148b8dea3e8246a0c3126e82cc4 (patch)
tree287b9cfd8e3a03884b188c164ad72a4849fa1c8c /etc/rc.restore_full_backup
parent6aab8d8746da49b070990292dfef7c5e2925816a (diff)
downloadpfsense-813d71c1a3100148b8dea3e8246a0c3126e82cc4.zip
pfsense-813d71c1a3100148b8dea3e8246a0c3126e82cc4.tar.gz
trigger a reboot after restoration of full backup. Ticket #4107
Diffstat (limited to 'etc/rc.restore_full_backup')
-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 57cf7cb..dc44c19 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