This repository has been archived on 2023-10-10. You can view files and clone it, but cannot push or open issues/pull-requests.
khepri-tftpy/run.py

18 lines
357 B
Python
Executable File

#!/usr/bin/env python
import sys, logging
import tftpy
def main():
server = tftpy.TftpServer("/var/khepri/tftp-root/")
try:
server.listen("10.8.1.1", 5000)
except tftpy.TftpException, err:
sys.stderr.write("%s\n" % str(err))
sys.exit(1)
except KeyboardInterrupt:
pass
if __name__ == '__main__':
main()