diff options
author | sullrich <sullrich@pfsense.org> | 2009-12-07 21:23:15 -0500 |
---|---|---|
committer | sullrich <sullrich@pfsense.org> | 2009-12-07 21:23:15 -0500 |
commit | 7a7f3af1012b796b6c0e16d8fae1b0707f21a0c6 (patch) | |
tree | d7b36127c81b887308354c134f0abe264d29a636 /usr/local/www/diag_backup.php | |
parent | a6327ffcc1712f929027839bcbf638e51975cf43 (diff) | |
download | pfsense-7a7f3af1012b796b6c0e16d8fae1b0707f21a0c6.zip pfsense-7a7f3af1012b796b6c0e16d8fae1b0707f21a0c6.tar.gz |
Reboot after uploading config
Diffstat (limited to 'usr/local/www/diag_backup.php')
-rwxr-xr-x | usr/local/www/diag_backup.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/usr/local/www/diag_backup.php b/usr/local/www/diag_backup.php index 6e21c69..246be18 100755 --- a/usr/local/www/diag_backup.php +++ b/usr/local/www/diag_backup.php @@ -497,7 +497,7 @@ function decrypt_change() { <?php if (is_subsystem_dirty('restore')): ?><p> <form action="reboot.php" method="post"> <input name="Submit" type="hidden" value=" Yes "> -<?php print_info_box_np("The firewall configuration has been changed.<br>You must apply the new config by restarting the firewall in order for changes to take effect.", "apply", "Reboot firewall");?><br> +<?php print_info_box("The firewall configuration has been changed.<br/>The firewall is now rebooting.");?><br> </form> <?php endif; ?> <form action="diag_backup.php" method="post" name="iform" enctype="multipart/form-data"> @@ -612,7 +612,7 @@ function decrypt_change() { </tr> </table> <p><input name="Submit" type="submit" class="formbtn" id="restore" value="Restore configuration"></p> - <p><strong><span class="red">Note:</span></strong><br />The firewall may need a reboot after restoring the configuration.<br /></p> + <p><strong><span class="red">Note:</span></strong><br />The firewall will reboot after restoring the configuration.<br /></p> </td> </tr> <?php if($config['installedpackages']['package'] != "") { ?> @@ -647,3 +647,9 @@ decrypt_change(); <?php include("fend.inc"); ?> </body> </html> +<?php + +if (is_subsystem_dirty('restore')) + exec("/etc/rc.reboot"); + +?>
\ No newline at end of file |