#!/bin/sh

. /etc/control.d/functions

CONFIG=/etc/proftpd.conf
EXE=/etc/init.d/proftpd

new_summary "Professional FTP Daemon"

new_subst inetd      "^ServerType[[:space:]]+inetd"      "s:^ServerType\(\s\+\)\w\+:ServerType\1inetd:"
new_subst standalone "^ServerType[[:space:]]+standalone" "s:^ServerType\(\s\+\)\w\+:ServerType\1standalone:"

new_help inetd "Enable ProFTPD as inetd service"
new_help standalone "Enable ProFTPD as standalone service"

control_subst "$CONFIG" "$*" || exit 1
