2022-06-20 23:49:14 +00:00
|
|
|
#!/bin/bash
|
|
|
|
r_log "tftp" "Configure tftp"
|
|
|
|
|
2022-06-22 01:21:01 +00:00
|
|
|
if [ "$RL_VER" -eq 8 ]; then
|
|
|
|
cat <<EOF > /etc/xinetd.d/tftp
|
2022-06-20 23:49:14 +00:00
|
|
|
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
|
|
|
|
|
2022-06-22 01:21:01 +00:00
|
|
|
fi
|
|
|
|
|
2022-06-20 23:49:14 +00:00
|
|
|
m_serviceCycler tftp.socket start
|