aboutsummaryrefslogtreecommitdiffstats
path: root/packages/carp.xml
diff options
context:
space:
mode:
authorColin Smith <colin@pfsense.org>2005-03-21 04:41:08 +0000
committerColin Smith <colin@pfsense.org>2005-03-21 04:41:08 +0000
commitedd16b8cf9fd396c03b0add6632986a98eca03f7 (patch)
tree1ca54192008de4832b9c4d0da988fb50fd1956b2 /packages/carp.xml
parentc34fb5342a439e59323e34185727f182e52801e2 (diff)
downloadpfsense-packages-edd16b8cf9fd396c03b0add6632986a98eca03f7.tar.gz
pfsense-packages-edd16b8cf9fd396c03b0add6632986a98eca03f7.tar.bz2
pfsense-packages-edd16b8cf9fd396c03b0add6632986a98eca03f7.zip
Use chmod() instead of system() (or equivalent) for all package startup scripts.
Diffstat (limited to 'packages/carp.xml')
-rw-r--r--packages/carp.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/carp.xml b/packages/carp.xml
index fb95aa3b..64eb9a2b 100644
--- a/packages/carp.xml
+++ b/packages/carp.xml
@@ -259,8 +259,8 @@
}
fwrite($fout, "/etc/rc.filter_configure");
fclose($fout);
- mwexec("chmod a+x /usr/local/etc/rc.d/carp.sh");
- system("/usr/local/etc/rc.d/carp.sh >/dev/null 2>&amp;1 &amp;");
+ chmod("/usr/local/etc/rc.d/carp.sh", 0755);
+ mwexec("/usr/local/etc/rc.d/carp.sh");
if($using_arp_balance == 1) mwexec("sysctl net.inet.arpbalance=1");
if($preempt == 1) mwexec("sysctl net.inet.carp.preempt=1");
conf_mount_ro();