+dhcp_boot_add() {
+ local cfg="$1"
+
+ config_get name "$cfg" name
+
+ config_get filename "$cfg" filename
+ [ -n "$filename" ] || return 0
+
+ config_get servername "$cfg" servername
+ [ -n "$servername" ] || return 0
+
+ config_get serveraddress "$cfg" serveraddress
+ [ -n "$serveraddress" ] || return 0
+
+ append args "--dhcp-boot=${name:+net:$name,}$filename,$servername,$serveraddress"
+
+ dhcp_option_add "$cfg" "$name"
+}
+
+