<?php

require_once("globals.inc");
require_once("config.inc");
require_once("functions.inc");

$interface = convert_real_interface_to_friendly_interface_name(str_replace("\n", "", $argv[1]));
if (!empty($interface)) {
	foreach (config_get_path('gateways/gateway_item', []) as $gate) {
		if (($gate['interface'] == $interface) && 
		    !isset($gate['monitor_disable']) &&
		    !isset($gate['disabled'])) {
			setup_gateways_monitor();
		}
	}
	system_staticroutes_configure($interface, false);
}

?>
