busybox/examples/var_service/tftpd/run
Denys Vlasenko 816d8d7a66 setlogcons: open /dev/ttyN for "setlogcons N", not /dev/tty1
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2018-04-16 21:48:32 +02:00

16 lines
210 B
Bash
Executable File

#!/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