diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-03-23 06:39:05 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-03-23 06:39:05 +0000 |
commit | b85355717c88ba39ba8ce10de5fa0df2de971494 (patch) | |
tree | aa631dae2d27d6119235a5cf37ee65f2c5c30303 /packages/carp.xml | |
parent | a37b1e5637ec965c9402ca9b7a0324a2a3eb7a09 (diff) | |
download | pfsense-packages-b85355717c88ba39ba8ce10de5fa0df2de971494.tar.gz pfsense-packages-b85355717c88ba39ba8ce10de5fa0df2de971494.tar.bz2 pfsense-packages-b85355717c88ba39ba8ce10de5fa0df2de971494.zip |
Bring pfsync up first
Diffstat (limited to 'packages/carp.xml')
-rw-r--r-- | packages/carp.xml | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/packages/carp.xml b/packages/carp.xml index 7928c118..88c2e70e 100644 --- a/packages/carp.xml +++ b/packages/carp.xml @@ -221,6 +221,21 @@ global $config; $carp_instances_counter = 0; $pfsync_instances_counter = 0; + if($config['installedpackages']['carpsettings']['config'] != "") + foreach($config['installedpackages']['carpsettings']['config'] as $carp) + if($carp['pfsyncenabled'] != "") { + $pfsync = 1; + if($carp['premption'] != "") + $preempt = 1; + if($carp['balancing'] != "") + $using_arp_balance = 1; + $carp_sync_int = convert_friendly_interface_to_real_interface_name($carp['pfsyncinterface']); + fwrite($fout, "/sbin/ifconfig pfsync0 create\n"); + fwrite($fout, "/sbin/ifconfig pfsync0 syncif " . $carp_sync_int . "\n"); + fwrite($fout, "/sbin/ifconfig {$carp_sync_int} up\n"); + fwrite($fout, "/sbin/ifconfig pfsync0 up\n"); + $pfsync_instances_counter++; + } if($config['installedpackages']['carp']['config'] != "") { foreach($config['installedpackages']['carp']['config'] as $carp) { /* @@ -242,21 +257,7 @@ $carp_instances_counter++; } } - if($config['installedpackages']['carpsettings']['config'] != "") - foreach($config['installedpackages']['carpsettings']['config'] as $carp) - if($carp['pfsyncenabled'] != "") { - $pfsync = 1; - if($carp['premption'] != "") - $preempt = 1; - if($carp['balancing'] != "") - $using_arp_balance = 1; - $carp_sync_int = convert_friendly_interface_to_real_interface_name($carp['pfsyncinterface']); - fwrite($fout, "/sbin/ifconfig pfsync0 create\n"); - fwrite($fout, "/sbin/ifconfig pfsync0 syncif " . $carp_sync_int . "\n"); - fwrite($fout, "/sbin/ifconfig {$carp_sync_int} up\n"); - fwrite($fout, "/sbin/ifconfig pfsync0 up\n"); - $pfsync_instances_counter++; - } + fwrite($fout, "/etc/rc.filter_configure"); fclose($fout); chmod("/usr/local/etc/rc.d/carp.sh", 0755); |