From 602d946642e8d7be1adb78ceed75c1b8513eed42 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 7 Jun 2005 17:27:09 +0000 Subject: Relaunch pftpx on dhclient changes if necessary --- etc/inc/config.inc | 1 + etc/rc.newwanip | 3 +++ 2 files changed, 4 insertions(+) (limited to 'etc') diff --git a/etc/inc/config.inc b/etc/inc/config.inc index 8025c0d..0c3c892 100644 --- a/etc/inc/config.inc +++ b/etc/inc/config.inc @@ -1019,6 +1019,7 @@ function system_start_ftp_helpers() { if($config['system']['disableftpproxy'] <> "") return; $wanif = get_real_wan_interface(); $ip = find_interface_ip($wanif); + mwexec("/sbin/killall pftpx"); mwexec("/usr/local/sbin/pftpx -g 8021 -p {$ip}"); } diff --git a/etc/rc.newwanip b/etc/rc.newwanip index 5b51473..f1cdda3 100755 --- a/etc/rc.newwanip +++ b/etc/rc.newwanip @@ -56,6 +56,9 @@ return 0; /* nothing to do */ } + /* relaunch pftpx */ + system_start_ftp_helpers(); + /* resync ipfilter */ filter_resync(); -- cgit v1.1