summaryrefslogtreecommitdiffhomepage
path: root/examples/var_service/tftpd/run
blob: e492d8453783a4a62d2eb405b9c46fccaef8435f (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 - \
softlimit \
setuidgid "$user" \
udpsvd -v -c 10 -l localhost \
  0 69 \
tftpd /pub/tftpd_root