diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-01-04 18:38:01 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-01-04 18:38:01 +0000 |
commit | 6d648622f1d4248ba182564b33ff5189c4c65df7 (patch) | |
tree | fd4990caf546b046cbbae545dd454ff4e9d15b28 /etc/inc/config.inc | |
parent | f487090ca244ae8021f11da95befe6c5f1e0a776 (diff) | |
download | pfsense-6d648622f1d4248ba182564b33ff5189c4c65df7.zip pfsense-6d648622f1d4248ba182564b33ff5189c4c65df7.tar.gz |
Add FTPSESAME
Diffstat (limited to 'etc/inc/config.inc')
-rw-r--r-- | etc/inc/config.inc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc index c3d0f01..969522a 100644 --- a/etc/inc/config.inc +++ b/etc/inc/config.inc @@ -1302,11 +1302,15 @@ function system_start_ftp_helpers() { $interface_counter++; } else { /* grab the current interface IP address */ - $ip = find_interface_ip(convert_friendly_interface_to_real_interface_name($ifname)); + $int = convert_friendly_interface_to_real_interface_name($ifname); + $ip = find_interface_ip($int); /* if pftpx is already running then do not launch it again */ - $helpers = exec("ps awux | grep \"/usr/local/sbin/pftpx -c {$port}\" | grep -v grep | sed \"s/ */ /g\""); + $helpers = exec("/bin/ps awux | grep \"/usr/local/sbin/pftpx -c {$port}\" | grep -v grep | sed \"s/ */ /g\""); if(!$helpers && $ip) mwexec("/usr/local/sbin/pftpx -c {$port} -g 8021 {$ip}"); + $helpers = exec("/bin/ps awux | grep \"/usr/local/sbin/ftpsesame -i {$int}\" | grep -v grep | sed \"s/ */ /g\""); + if(!$helpers && $ip) + mwexec("/usr/local/sbin/ftpsesame -i {$int}"); $interface_counter++; } } |