summaryrefslogtreecommitdiffstats
path: root/etc/phpshellsessions/enablecarp
blob: b1c4a43e420a13036c86b2402aee6cdef4e92b83 (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_sync_setup();
set_single_sysctl("net.inet.carp.allow", "1");
OpenPOWER on IntegriCloud