aboutsummaryrefslogtreecommitdiff
path: root/examples/var_service/tftpd/run
blob: ceb2be555f6a0247285916468f8d9f8d46806468 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

#exec >/dev/null
exec 2>&1
exec </dev/null

user=root # for bind to port 69

exec \
env - PATH="$PATH" \
softlimit \
setuidgid "$user" \
udpsvd -v -c 10 -l localhost \
  0 69 \
tftpd /pub/tftpd_root