diff options
author | Ermal <eri@pfsense.org> | 2010-03-24 17:00:39 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-03-24 17:00:39 +0000 |
commit | a0116247ddcb7ac1ffc37a2d1ac967952171f4f3 (patch) | |
tree | 17a673652afd1608efe5467c4fb97189a2b62fe0 /usr/local/www/system_firmware_settings.php | |
parent | 7554ab8ca355952a3048a8ee64c54810949cad7f (diff) | |
download | pfsense-a0116247ddcb7ac1ffc37a2d1ac967952171f4f3.zip pfsense-a0116247ddcb7ac1ffc37a2d1ac967952171f4f3.tar.gz |
Ticket #318. Add an option to updater settings to allow updates for images with no signature. This makes auto-updater work and will not display an confirmation message during manual update.
Diffstat (limited to 'usr/local/www/system_firmware_settings.php')
-rwxr-xr-x | usr/local/www/system_firmware_settings.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/usr/local/www/system_firmware_settings.php b/usr/local/www/system_firmware_settings.php index 622e355..8fa06ec 100755 --- a/usr/local/www/system_firmware_settings.php +++ b/usr/local/www/system_firmware_settings.php @@ -52,6 +52,11 @@ if ($_POST) { unset($config['system']['firmware']['alturl']); unset($config['system']['firmware']); } + if($_POST['allowinvalidsig'] == "yes") + $config['system']['firmware']['allowinvalidsig'] = true; + else + unset($config['system']['firmware']['allowinvalidsig']); + write_config(); } } @@ -137,6 +142,20 @@ function enable_altfirmwareurl(enable_over) { </span> </td> </tr> + <tr> + <td colspan="2" class="list" height="12"> </td> + </tr> + <tr> + <td colspan="2" valign="top" class="listtopic">Updates</td> + </tr> + <tr> + <td width="22%" valign="top" class="vncell">Not signed images.</td> + <td width="78%" class="vtable"> + <input name="allowinvalidsig" type="checkbox" id="allowinvalidsig" value="yes" <?php if (isset($curcfg['allowinvalidsig'])) echo "checked"; ?> /> + <br /> + Allow to update the system with auto-updater and images with no signature. + </td> + </tr> <script>enable_altfirmwareurl();</script> <tr> <td width="22%" valign="top"> </td> |