Revision 5d882f71
Added by Viktor Gurov almost 5 years ago
src/usr/local/www/system_advanced_network.php | ||
---|---|---|
38 | 38 |
require_once("filter.inc"); |
39 | 39 |
require_once("shaper.inc"); |
40 | 40 |
|
41 |
$show_reboot_msg = false; |
|
42 |
$reboot_msg = gettext('Changing the Hardware Checksum setting requires a system reboot.') . '\n\n' . gettext('Reboot now?'); |
|
41 | 43 |
|
42 | 44 |
$pconfig['ipv6nat_enable'] = isset($config['diag']['ipv6nat']['enable']); |
43 | 45 |
$pconfig['ipv6nat_ipaddr'] = isset($config['diag']['ipv6nat']['ipaddr']) ? $config['diag']['ipv6nat']['ipaddr'] : null; |
... | ... | |
149 | 151 |
system_enable_arp_wrong_if(); |
150 | 152 |
} |
151 | 153 |
|
154 |
if ((isset($_POST['disablechecksumoffloading']) xor isset($config['system']['disablechecksumoffloading'])) || |
|
155 |
(isset($_POST['disablesegmentationoffloading']) xor isset($config['system']['disablesegmentationoffloading'])) || |
|
156 |
(isset($_POST['disablelargereceiveoffloading']) xor isset($config['system']['disablelargereceiveoffloading']))) { |
|
157 |
$show_reboot_msg = true; |
|
158 |
} |
|
159 |
|
|
152 | 160 |
if ($_POST['disablechecksumoffloading'] == "yes") { |
153 | 161 |
$config['system']['disablechecksumoffloading'] = true; |
154 | 162 |
} else { |
... | ... | |
470 | 478 |
setIpv6duid(); |
471 | 479 |
showHideIpv6duid(); |
472 | 480 |
|
481 |
if (<?=(int)$show_reboot_msg?> && confirm("<?=$reboot_msg?>")) { |
|
482 |
postSubmit({override : 'yes'}, 'diag_reboot.php') |
|
483 |
} |
|
473 | 484 |
|
474 | 485 |
}); |
475 | 486 |
//]]> |
Also available in: Unified diff
Reboot message after changing Hardware Checksum Offloading setting. Implements #3031