]> git.ozlabs.org Git - petitboot/commit
utils/pb-udhcpc: Unify references to DHCP bootfile parameter
authorJeremy Kerr <jk@ozlabs.org>
Mon, 20 Jan 2014 00:58:49 +0000 (08:58 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Tue, 21 Jan 2014 05:36:01 +0000 (13:36 +0800)
commit6d05fe798a06ba93418a1f8517e8f30cadcfd5e4
treedee01306db5a2e16554d437d74b3dadc0eb9282a
parent416647ec10a0ca505de35348620391fde80043c0
utils/pb-udhcpc: Unify references to DHCP bootfile parameter

udhcpc may pass the bootfile parameter as either $bootfile or
$boot_file, depending on whether the option is present in the BOOTP
header, or as a DHCP vendor option. We have code in pb-udhcpc to unify
this to $bootfile, but we only use the unified value in one of the user
events.

This change uses the correct value of bootfile, and fixes the check to
conditionally generate the explicit add event. We also need to update
the user-event code to use the right event parameter name.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
discover/user-event.c
utils/pb-udhcpc