1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2006 OpenWrt.org
7 local cfg="$CONFIG_SECTION"
9 config_get cfgt "$cfg" TYPE
13 config_get turbo $cfg turbo
14 config_get port $cfg port
15 config_get elpf $cfg elpf
18 yes|on|enabled|1) turbo=1;;
21 yes|on|enabled|1) elpf=1;;
23 TOPFIELD_ARGS="-D ${turbo:+--turbo }${port:+-P $port }${elpf:+-E}"
29 config_load ftpd-topfield
30 /usr/sbin/ftpd-topfield $TOPFIELD_ARGS