+ # Collect relevant DHCP response parameters into $paramstr
+ for name in pxeconffile bootfile mac ip siaddr serverid tftp
+ do
+ value=$(eval "echo \${$name}")
+ [ -n "$value" ] || continue;
+
+ paramstr="$paramstr $name=$value"
+ done
+
+ pb-event dhcp@{interface} $paramstr
+
+ # Check if an explicit config file present
+ if [ -n "${conffile}" ]
+ then
+ return;
+ fi
+
+ # Finally, add an option for the boot_file parameter
+ paramstr='name=netboot'
+
+ # Collect relevant parameters to add an option to the boot_file parameter
+ for name in rootpath siaddr boot_file
+ do
+ value=$(eval "echo \${$name}")
+ [ -n "$value" ] || continue;
+
+ paramstr="$paramstr $name=$value"
+ done
+
+ pb-event add@{interface} $paramstr