[syslinux] tftp-hpa enhancement

H. Peter Anvin hpa at zytor.com
Sun Jan 29 11:53:32 PST 2012


On 01/29/2012 09:50 AM, Mickey Malone wrote:
> hpa,
> 
> Attached is the patch file. I stuck with the current defaults (write to file) and added a -B switch (short for Batch mode).
> 
> If the -B switch is present, then so does the -c command or we will notify the user.
> 
> I also moved all the tftp client output to stderr to keep file integrity during verbosity, updated the spec, and updated the man page.
> 
> So basically, this works and is somewhat my use case: 
> 
> tftp -B -m binary 127.0.0.1 69 -c get intiramfs | gzip -dc | cpio -id
> 

The "standard" way to do this -- and which might even work in the
existing code -- is:

tftp -m binary 127.0.0.1 -c get initramfs -

The local name of "-" means stdout  (or stdin for a put).  I'd like to
stick to this convention.

	-hpa





More information about the Syslinux mailing list