igmpprox: foo for #1256

This commit is contained in:
Franco Fichtner 2016-11-14 22:07:01 +01:00
parent a4882df929
commit b0ad4456ba
2 changed files with 11 additions and 5 deletions

View File

@ -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()

View File

@ -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();