tftp-hpa-execute 0.48

tftp-hpa-execute is a customized version of tftp-hpa that adds the ability to execute system commands.
tftp-hpa-execute is a customized version of tftp-hpa that adds the ability to execute system commands when files are requested matching certain patterns.

Developer comments

I use this to dynamically generate configuration files for VoIP phones when the phones request the file. tftp-hpa's regex pattern matching system is used to determine if a match occurs or not and executes the command you have specified for that pattern.

For example, a rule can be created to whenever a file beginning with the string 00085D (OUI-Prefix for the Aastra VoIP phone's MAC address).

Usage:

First you'll need to run the tftpd daemon specifying a location for your rules file, this is done with the -m argument to the tftpd daemon. You will also need to create the rules file, there is a sample file located in the source tarball in tftpd/sample.rules

in your rules file simply create a line similiar to:

x ^00085D /usr/local/bin/mkaastracfg

This rule will execute the command /usr/local/bin/mkaastracfg and pass the full filename being requested to the program as the first argument.

last updated on:
August 22nd, 2008, 13:37 GMT
price:
FREE!
developed by:
Matt Watson
license type:
GPL (GNU General Public License) 
category:
ROOT \ Utilities

FREE!

In a hurry? Add it to your Download Basket!

user rating

UNRATED
0.0/5
 

0/5

Add your review!

SUBMIT