toolkit/func/core/pkg_tftp-server/01-configure-tftp.sh

20 lines
406 B
Bash
Executable file

#!/bin/bash
r_log "tftp" "Configure tftp"
cat <<EOF > /etc/xinetd.d/tftp
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /var/lib/tftpboot
disable = no
per_source = 11
cps = 100 2
flags = IPv4
}
EOF
m_serviceCycler tftp.socket start