diff options
author | Chris Buechler <cmb@pfsense.org> | 2015-06-02 11:51:52 -0500 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2015-06-02 11:53:19 -0500 |
commit | 813d71c1a3100148b8dea3e8246a0c3126e82cc4 (patch) | |
tree | 287b9cfd8e3a03884b188c164ad72a4849fa1c8c /etc/rc.restore_full_backup | |
parent | 6aab8d8746da49b070990292dfef7c5e2925816a (diff) | |
download | pfsense-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-x | etc/rc.restore_full_backup | 3 |
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:" |