summaryrefslogtreecommitdiffstats
path: root/etc/inc/config.inc
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-03-08 05:42:38 +0000
committerErmal Luçi <eri@pfsense.org>2009-03-08 05:43:19 +0000
commit21f32cf4bbb928c24db2321b1936da085abe665d (patch)
tree7b6d4d34b2088d32565b893d72f1198b09664940 /etc/inc/config.inc
parent23a54db3a5ad926667a672991bf76762f8dbc352 (diff)
downloadpfsense-21f32cf4bbb928c24db2321b1936da085abe665d.zip
pfsense-21f32cf4bbb928c24db2321b1936da085abe665d.tar.gz
More fixes at escaped double quotes not working!
Diffstat (limited to 'etc/inc/config.inc')
-rw-r--r--etc/inc/config.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc
index 5cb7ca4..8dd9243 100644
--- a/etc/inc/config.inc
+++ b/etc/inc/config.inc
@@ -2834,7 +2834,7 @@ function system_start_ftp_helpers() {
if($g['debug'])
log_error("Config: FTP proxy disabled for interface {$ifent}");
- exec("/bin/ps awux | grep \"ftp-proxy\" | grep \"{$port}\" | grep -v grep | awk '{ print $2 }'", $helpers);
+ exec("/bin/ps awux | /usr/bin/grep ftp-proxy | /usr/bin/grep {$port} | /usr/bin/grep -v grep | /usr/bin/awk '{ print $2 }'", $helpers);
if(count($helpers[0]) > 0)
mwexec("/bin/kill {$helpers[0]}");
$interface_counter++;
@@ -2875,7 +2875,7 @@ function system_start_ftp_helpers() {
/* if ftp-proxy is already running then do not launch it again */
if($g['debug'])
log_error("Config: FTP proxy port ($port) enabled for interface {$ifname}");
- $helpers = exec("/bin/ps awux | grep \"/usr/local/sbin/ftp-proxy {$shaper_queue} -p {$port}\" | grep -v grep | sed \"s/ */ /g\"");
+ $helpers = exec("/bin/ps awux | /usr/bin/grep ftp-proxy | /usr/bin/grep {$port} | /usr/bin/grep -v grep | sed \"s/ */ /g\"");
if(!$helpers && $ip)
mwexec("/usr/local/sbin/ftp-proxy {$shaper_queue} -p {$port} {$pftpxsourceaddr} {$ip} -T PFFTPPROXY");
if(!$ip)
OpenPOWER on IntegriCloud