Bring carp interfaces up under rc.bootup, not the filter process

This commit is contained in:
Scott Ullrich 2005-05-06 00:15:30 +00:00
parent 66f59ea2df
commit 93e251a4ba
3 changed files with 11 additions and 5 deletions

View File

@ -189,11 +189,6 @@ function filter_configure() {
}
}
/* lets bring the carp interfaces up now */
$carp_ints = find_number_of_created_carp_interfaces();
for($x=0; $x<$carp_ints; $x++)
mwexec("/sbin/ifconfig carp{$carp_instances_counter} up");
if ($g['booting'])
echo "Done\n";
return 0;

View File

@ -308,6 +308,14 @@ function interfaces_carp_configure() {
}
}
function interfaces_carp_bringup() {
global $g, $config;
/* lets bring the carp interfaces up now */
$carp_ints = find_number_of_created_carp_interfaces();
for($x=0; $x<$carp_ints; $x++)
mwexec("/sbin/ifconfig carp{$carp_instances_counter} up");
}
function interfaces_wireless_configure($if, $wlcfg) {
global $config, $g;

View File

@ -116,6 +116,9 @@
/* setup altq + pf */
filter_configure();
/* bring up carp interfaces */
interfaces_carp_bringup();
/* start OpenVPN server & clients */
ovpn_configure();