summaryrefslogtreecommitdiffstats
path: root/etc/phpshellsessions/enablecarp
blob: d486c0413ded99aba8c70f3e416872edff73383e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
! echo "Enabling CARP..."
require_once("config.inc");
require_once("interfaces.inc");
require_once("util.inc");

if(is_array($config['virtualip']['vip'])) {
	$viparr = &$config['virtualip']['vip'];
	foreach ($viparr as $vip) {
		switch ($vip['mode']) {
			case "carp":
				interface_carp_configure($vip);
				sleep(1);
			break;
		}
	}
}
interfaces_carp_setup();
set_single_sysctl("net.inet.carp.allow", "1");
OpenPOWER on IntegriCloud