Eigener TFTP-Server auf QNAP NAS
1. ipkg install tftpd-hpa
2. edit /opt/etc/init.d/S11tftpd:
#! /bin/sh
test -x /opt/sbin/in.tftpd || exit 5
case “$1″ in
start)
echo “Starting TFTP daemon.”
/opt/sbin/in.tftpd -l -c -u admin -s /share/MD0_DATA/tftpboot
;;
stop)
echo “Shutting down TFTP daemon.”
killall in.tftpd
;;
restart)
## Stop the service and regardless of whether it was
## running or not, start it again.
$0 stop
$0 start
;;
*)
echo “Usage: $0 {start|stop|restart}”
exit 1
esac
3. create share to copy tftp files to … I use “tftpboot” (see Path above /share/MD0_DATA/!share!)
4. enable service in autorun.sh
Hint: The tftpd-hpa package depends on xinetd. I start the daemon as standalone. No effect on hibernation so far.