Skip to content

Commit db8005b

Browse files
committed
system: ignore monitor status on boot
1 parent e40596e commit db8005b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/etc/inc/system.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ function system_routing_configure($verbose = false, $interface_map = null, $moni
664664

665665
$ifdetails = legacy_interfaces_details();
666666
$gateways = new \OPNsense\Routing\Gateways();
667-
$down_gateways = isset($config['system']['gw_switch_default']) ? return_down_gateways() : [];
667+
$down_gateways = isset($config['system']['gw_switch_default']) && $monitor !== 'ignore' ? return_down_gateways() : [];
668668
$routes = json_decode(configd_run('interface routes list -n json'), true) ?? [];
669669

670670
foreach ($gateways->gatewaysIndexedByName() as $gateway) {
@@ -774,7 +774,7 @@ function system_routing_configure($verbose = false, $interface_map = null, $moni
774774

775775
service_log("done.\n", $verbose);
776776

777-
if ($monitor) {
777+
if ($monitor === true) {
778778
/* reload requested monitors only or reload in full */
779779
$gwnames = !empty($interface_map) ? [] : null;
780780

src/etc/rc.bootup

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ interfaces_configure(true);
9191
system_resolver_configure(true); /* adapts to runtime interface configuration */
9292
filter_configure_sync(true);
9393
plugins_configure('early', true);
94-
system_routing_configure(true, null, false);
94+
system_routing_configure(true, null, 'ignore');
9595

9696
plugins_configure('dhcp', true);
9797
plugins_configure('dns', true);

0 commit comments

Comments
 (0)