aboutsummaryrefslogtreecommitdiffstats
path: root/packages/carp.xml
diff options
context:
space:
mode:
Diffstat (limited to 'packages/carp.xml')
-rw-r--r--packages/carp.xml4
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/carp.xml b/packages/carp.xml
index db8d8ca5..8b5fbce4 100644
--- a/packages/carp.xml
+++ b/packages/carp.xml
@@ -226,6 +226,8 @@
* XXX: find out how many carp and pfsync interfaces are established
* and destroy/down them before sweeping through the list
*/
+ conf_mount_rw();
+ config_lock();
$fout = fopen("/usr/local/etc/rc.d/carp.sh","w");
fwrite($fout, "#!/bin/sh \n");
global $config;
@@ -269,6 +271,8 @@
mwexec("/usr/local/etc/rc.d/carp.sh");
if($using_arp_balance == 1) system("sysctl net.inet.arpbalance=1");
if($preempt == 1) system("sysctl net.inet.carp.preempt=1");
+ conf_mount_ro();
+ config_unlock();
}
</custom_php_command_before_form>
<custom_php_resync_config_command>