The function find_number_of_created_bridges() returns the actual number of bridges.

Don't increment this number. This prevents running the command without having anything configured.
This commit is contained in:
Seth Mos 2008-11-06 13:19:52 +00:00
parent 7d0e5565fe
commit b1e89f06dd

View File

@ -1690,7 +1690,6 @@ function system_start_ftp_helpers() {
}
/* support bridged interfaces. even they need ftp mojo */
$num_bridges = find_number_of_created_bridges();
$num_bridges++;
for($x=0; $x<$num_bridges; $x++) {
mwexec("/usr/local/sbin/ftpsesame {$shaper_queue}-i bridge{$x}");
}