hdt: Adding dump_filename= option
authorErwan Velu <erwanaliasr1@gmail.com>
Thu, 28 Apr 2011 18:26:24 +0000 (20:26 +0200)
committerErwan Velu <erwanaliasr1@gmail.com>
Thu, 28 Apr 2011 18:26:24 +0000 (20:26 +0200)
commit034b600107a72f30eef95ea9d7a62c25ff00f565
treea4cae65ec8a9e6a4096859d12a82af2e197b2b86
parentac5635b0b21224d83a3f9f5577c09db598f04142
hdt: Adding dump_filename= option

This option allow the user to redefine the way filename is made-of.
By default that's "mac_address+dmi_vendor_name+dmi_product_name"

This can be overidded by the following syntax:

dump_filename=your_filename

Note that it's mandatory not to add "" or '' around your_filename.

your_filename could be a regular filename but can also includes %{}
directives as defined by :
%{m} = mac address
%{v} = vendor name of the machine
%{p} = product name of the machine
%{ba} = Asset tag of the base board
%{bs} = Serial number of the base board
%{ca} = Asset tag of the chassis
%{cs} = Serial number of the chassis
%{sk} = SKU number of the system
%{ss} = Serial number of the system

Here come a possible command line :
APPEND nomenu auto='dump;' dump_path=hdt2 tftp_ip=192.168.1.254 dump_filename=%{m}+%{bs}+%{ba}+%{cs}+%{ca}+%{sk}+%{ss}+%{p}+%{v}
com32/hdt/hdt-common.c
com32/hdt/hdt-common.h
com32/hdt/hdt-dump.c