Denys Vlasenko | c389685 | 2009-11-08 18:41:26 +0100 | [diff] [blame] | 1 | #!/bin/sh |
2 | |||||
3 | #exec >/dev/null | ||||
4 | exec 2>&1 | ||||
5 | exec </dev/null | ||||
6 | |||||
7 | user=root # for bind to port 69 | ||||
8 | |||||
9 | exec \ | ||||
Denys Vlasenko | 816d8d7 | 2018-04-16 21:48:32 +0200 | [diff] [blame] | 10 | env - PATH="$PATH" \ |
Denys Vlasenko | c389685 | 2009-11-08 18:41:26 +0100 | [diff] [blame] | 11 | softlimit \ |
12 | setuidgid "$user" \ | ||||
13 | udpsvd -v -c 10 -l localhost \ | ||||
14 | 0 69 \ | ||||
15 | tftpd /pub/tftpd_root |