diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-05-06 00:15:30 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-05-06 00:15:30 +0000 |
commit | 93e251a4ba67244d3629a551dea446f2e1e6fe37 (patch) | |
tree | d971ca130bfaaec1372b7b047eea98c228f5bd79 /etc | |
parent | 66f59ea2df3a5b810d7bdfffca3b57106659b32f (diff) | |
download | pfsense-93e251a4ba67244d3629a551dea446f2e1e6fe37.zip pfsense-93e251a4ba67244d3629a551dea446f2e1e6fe37.tar.gz |
Bring carp interfaces up under rc.bootup, not the filter process
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/filter.inc | 5 | ||||
-rw-r--r-- | etc/inc/interfaces.inc | 8 | ||||
-rwxr-xr-x | etc/rc.bootup | 3 |
3 files changed, 11 insertions, 5 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index a6d6c88..ec4a0f3 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -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; diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index e2f37d7..632368d 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -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; diff --git a/etc/rc.bootup b/etc/rc.bootup index 63e7f85..e1912d9 100755 --- a/etc/rc.bootup +++ b/etc/rc.bootup @@ -116,6 +116,9 @@ /* setup altq + pf */ filter_configure(); + /* bring up carp interfaces */ + interfaces_carp_bringup(); + /* start OpenVPN server & clients */ ovpn_configure(); |