summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-01-31 23:28:19 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-01-31 23:28:19 +0000
commit18ff56f25607c33a02598500585e7b502755029b (patch)
treebf61990ad0a1b8992926fe7675487a0345149e9f /usr
parent6305e67c459b8c685ad2e483c6d607404c74e2e5 (diff)
downloadpfsense-18ff56f25607c33a02598500585e7b502755029b.zip
pfsense-18ff56f25607c33a02598500585e7b502755029b.tar.gz
Add auto upgrade option to pfSense
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/system_firmware.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/usr/local/www/system_firmware.php b/usr/local/www/system_firmware.php
index 7f593a5..f219979 100755
--- a/usr/local/www/system_firmware.php
+++ b/usr/local/www/system_firmware.php
@@ -31,6 +31,11 @@
$d_isfwfile = 1; require("guiconfig.inc");
+if($_GET['autoupgrade'] <> "") {
+ exec_rc_script_async("/etc/rc.firmware_auto");
+ $savemsg = "pfSense is now auto upgrading. The firewall will automatically reboot if it succeeds.";
+}
+
/* checks with m0n0.ch to see if a newer firmware version is available;
returns any HTML message it gets from the server */
function check_firmware_version() {
@@ -200,6 +205,21 @@ print_info_box($sig_warning);
has started. The firewall will reboot automatically after
storing the new firmware. The configuration will be maintained.</span></td>
</tr>
+
+ <tr>
+ <td colspan="2">&nbsp;</td>
+ </tr>
+ <tr>
+ <td colspan="2" class="listtopic">Invoke pfSense Auto Upgrade</td>
+ </tr>
+ <tr>
+ <td width="22%" valign="baseline" class="vncell">&nbsp;</td>
+ <td width="78%" class="vtable">
+ <p> Click this button to reinstall all system packages. This may wake a while.<br>
+ <br>
+ <a href="system_firmware.php?autoupgrade=true">Invoke Auto Upgrade</a>
+ </tr>
+
</table>
</form>
<?php endif; endif; ?>
OpenPOWER on IntegriCloud