mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 09:34:39 +00:00
igmpprox: foo for #1256
This commit is contained in:
parent
a4882df929
commit
b0ad4456ba
@ -1351,7 +1351,7 @@ EOD;
|
||||
return 0;
|
||||
}
|
||||
|
||||
function services_igmpproxy_configure()
|
||||
function services_igmpproxy_configure($verbose = false)
|
||||
{
|
||||
global $config;
|
||||
|
||||
@ -1359,7 +1359,12 @@ function services_igmpproxy_configure()
|
||||
killbyname("igmpproxy");
|
||||
|
||||
if (!isset($config['igmpproxy']['igmpentry']) || !is_array($config['igmpproxy']['igmpentry']) || (count($config['igmpproxy']['igmpentry']) == 0)) {
|
||||
return 1;
|
||||
return;
|
||||
}
|
||||
|
||||
if ($verbose) {
|
||||
echo 'Started IGMP Proxy...';
|
||||
flush();
|
||||
}
|
||||
|
||||
$iflist = get_configured_interface_list();
|
||||
@ -1407,9 +1412,10 @@ EOD;
|
||||
unset($igmpconf);
|
||||
|
||||
mwexec('/usr/local/etc/rc.d/igmpproxy onestart');
|
||||
log_error('Started IGMP proxy service.');
|
||||
|
||||
return 0;
|
||||
if ($verbose) {
|
||||
print "done.\n";
|
||||
}
|
||||
}
|
||||
|
||||
function services_dhcrelay_configure()
|
||||
|
||||
@ -238,7 +238,7 @@ if ($kern_hz == '1000') {
|
||||
}
|
||||
|
||||
/* start the igmpproxy daemon */
|
||||
services_igmpproxy_configure();
|
||||
services_igmpproxy_configure(true);
|
||||
|
||||
/* If powerd is enabled, lets launch it */
|
||||
activate_powerd();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user