diff options
author | jim-p <jimp@pfsense.org> | 2013-03-29 11:46:21 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2013-03-29 11:46:21 -0400 |
commit | 155bc1fbd34ed53b0063c06285b891c59ec99f63 (patch) | |
tree | 2e508f22c3cc289d0bcb3f4bc165b900c7b8d747 /config/systempatches/system_patches_edit.php | |
parent | 651dd8c43c4aab0ec854f6b01cca8ab99fecce25 (diff) | |
download | pfsense-packages-155bc1fbd34ed53b0063c06285b891c59ec99f63.tar.gz pfsense-packages-155bc1fbd34ed53b0063c06285b891c59ec99f63.tar.bz2 pfsense-packages-155bc1fbd34ed53b0063c06285b891c59ec99f63.zip |
Add "auto apply" bit to system patches which will attempt to apply a patch during earlyshellcmd at boot time, to help patches survive across reboots and upgrades.
Diffstat (limited to 'config/systempatches/system_patches_edit.php')
-rw-r--r-- | config/systempatches/system_patches_edit.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/systempatches/system_patches_edit.php b/config/systempatches/system_patches_edit.php index 3dd5e349..5b30c9c5 100644 --- a/config/systempatches/system_patches_edit.php +++ b/config/systempatches/system_patches_edit.php @@ -127,6 +127,8 @@ if ($_POST) { } write_config(); + if ($thispatch['autoapply']) + patch_add_shellcmd(); header("Location: system_patches.php"); return; } @@ -192,7 +194,6 @@ include("head.inc"); <span class="vexpl"><?=gettext("Set this option to ignore whitespace in the patch."); ?></span> </td> </tr> -<!-- This isn't ready yet <tr> <td width="22%" valign="top" class="vncell"><?=gettext("Auto Apply"); ?></td> <td width="78%" class="vtable"> @@ -201,7 +202,6 @@ include("head.inc"); <span class="vexpl"><?=gettext("Set this option to apply the patch automatically when possible, useful for patches to survive after firmware updates."); ?></span> </td> </tr> ---> <tr> <td width="22%" valign="top"> </td> <td width="78%">Patch id: <?php echo $pconfig['uniqid']; ?></td> |