1
|
<?php
|
2
|
|
3
|
require_once("globals.inc");
|
4
|
require_once("config.inc");
|
5
|
require_once("functions.inc");
|
6
|
|
7
|
$interface = convert_real_interface_to_friendly_interface_name(str_replace("\n", "", $argv[1]));
|
8
|
if (!empty($interface)) {
|
9
|
foreach (config_get_path('gateways/gateway_item', []) as $gate) {
|
10
|
if (($gate['interface'] == $interface) &&
|
11
|
!isset($gate['monitor_disable']) &&
|
12
|
!isset($gate['disabled'])) {
|
13
|
setup_gateways_monitor();
|
14
|
}
|
15
|
}
|
16
|
system_staticroutes_configure($interface, false);
|
17
|
}
|
18
|
|
19
|
?>
|