docker-tftp/start.sh
Phil 7746dd02e1
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Changed Structure
2025-07-27 12:04:17 +02:00

13 lines
No EOL
526 B
Bash

#!/bin/bash
# Init File
/init.sh
# Wrapper script for dnsmasq to ensure TFTP logs are visible in docker logs
echo "[dnsmasq] Starting TFTP server on port 69"
echo "[dnsmasq] TFTP root: /config/menus"
echo "[dnsmasq] TFTP security: enabled"
echo "[dnsmasq] Logging: enabled (dhcp and queries)"
# Start dnsmasq as root to bind to port 69, then drop privileges to tftp
exec /usr/sbin/dnsmasq --port=0 --keep-in-foreground --enable-tftp --user=tftp --tftp-secure --tftp-root=/tftp --log-facility=- --log-dhcp --log-queries "$@"