aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Smith <colin@pfsense.org>2005-03-20 20:27:55 +0000
committerColin Smith <colin@pfsense.org>2005-03-20 20:27:55 +0000
commitbed9167070d1f3b9735508b963ee1d76702aa9b8 (patch)
tree448db2c4ba6c7186bb724ece6160368bb3d3f38f
parent9a1bd5e7e524fabc4187e8a7ab8579e2ec107c6c (diff)
downloadpfsense-packages-bed9167070d1f3b9735508b963ee1d76702aa9b8.tar.gz
pfsense-packages-bed9167070d1f3b9735508b963ee1d76702aa9b8.tar.bz2
pfsense-packages-bed9167070d1f3b9735508b963ee1d76702aa9b8.zip
Call unlink_if_exists() unstead of shelling out to use rm.
-rw-r--r--packages/freeradius.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/freeradius.xml b/packages/freeradius.xml
index 0da60c3c..c69c2371 100644
--- a/packages/freeradius.xml
+++ b/packages/freeradius.xml
@@ -96,7 +96,7 @@
$fout = fopen("/usr/local/etc/raddb/clients.conf","w");
fwrite($fout, "client 127.0.0.1" . "{\n" . "secret = pfsense\n" . "shortname = localhost\n}\n\n");
fclose($fout);
- mwexec("rm /usr/local/etc/rc.d/radiusd*");
+ unlink_if_exists(/usr/local/etc/rc.d/radiusd*);
$fout = fopen("/usr/local/etc/rc.d/radiusd.sh","w");
fwrite($fout,"#!/bin/sh\n\n/usr/local/sbin/radiusd -X -d /usr/local/etc/raddb &amp;\n");
fclose($fout);