Opened 10 years ago

Closed 10 years ago

Last modified 6 years ago

#3529 closed enhancement (fixed)

add dhcp-boot to dnsmasq-init

Reported by: anonymous Owned by: developers
Priority: normal Milestone: Kamikaze 8.09 RC1
Component: packages Version:
Keywords: Cc:


This adds dhcp-boot support to dnsmasq-init:

config boot

option name "virt0"
option filename "pxelinux.0"
option servername ""
option serveraddress ""

changes to /etc/init/dnsmasq:

dhcp_boot_add() {

local cfg="$1"

config_get name "$cfg" name

[ -n "$name" ]
return 0

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=net:$name,$filename,$servername,$serveraddress"

dhcp_option_add "$cfg" "$name"


and in start():

config_foreach dhcp_boot_add boot

Attachments (1)

dnsmasq.diff (1.0 KB) - added by awold@… 10 years ago.
requested proper patch.

Download all attachments as: .zip

Change History (4)

comment:1 Changed 10 years ago by anonymous

Please attach a diff to this ticket with you changes:

svn diff package/dnsmasq > dnsmasq.diff

Changed 10 years ago by awold@…

requested proper patch.

comment:3 Changed 10 years ago by florian

  • Resolution set to fixed
  • Status changed from new to closed

Applied in [11663], thanks !

Add Comment

Modify Ticket

as closed .
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.