I am looking for a way to serve TFTP requests with an output from a script (bash, PHP?) called with the TFTP request path as an argument. A simple TFTP equivalent of Apache+PHP.
Something like PHP + mod_rewrite, ie. when client requests "file123", the server would call a script (eg. ".\myscript.sh file123") and pass the output of the script as the returned TFTP data.
Can anyone hint a good, production-worthy solution? :D