aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorBill Marquette <billm@pfsense.org>2005-04-16 21:19:29 +0000
committerBill Marquette <billm@pfsense.org>2005-04-16 21:19:29 +0000
commit23576460ebb74608bccaf50eb5e8bed0c836b3e0 (patch)
tree92530b0530fea4b02def4dbe174bbf783f3de0db /packages
parent0a46997adc0ee8712dd22e1214aa7d2a1e40b696 (diff)
downloadpfsense-packages-23576460ebb74608bccaf50eb5e8bed0c836b3e0.tar.gz
pfsense-packages-23576460ebb74608bccaf50eb5e8bed0c836b3e0.tar.bz2
pfsense-packages-23576460ebb74608bccaf50eb5e8bed0c836b3e0.zip
more cleanup
Diffstat (limited to 'packages')
-rw-r--r--packages/carp.xml6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/carp.xml b/packages/carp.xml
index e7f10f32..3fa482f5 100644
--- a/packages/carp.xml
+++ b/packages/carp.xml
@@ -216,7 +216,7 @@
*/
conf_mount_rw();
config_lock();
- if(file_exists("/usr/local/etc/rc.d/carp.sh")) system("rm /usr/local/etc/rc.d/carp.sh");
+ unlink_if_exists("/usr/local/etc/rc.d/carp.sh");
$fout = fopen("/usr/local/pkg/pf/carp.sh","w");
fwrite($fout, "#!/bin/sh \n");
global $config;
@@ -227,9 +227,9 @@
if($carp['pfsyncenabled'] != "") {
$pfsync = 1;
if($carp['premption'] != "")
- fwrite($fout, "sysctl net.inet.carp.preempt=1\n");
+ fwrite($fout, "/sbin/sysctl net.inet.carp.preempt=1\n");
if($carp['balancing'] != "")
- fwrite($fout, "sysctl net.inet.arpbalance=1\n");
+ fwrite($fout, "/sbin/sysctl net.inet.arpbalance=1\n");
$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");