diff options
author | Ermal <eri@pfsense.org> | 2010-08-24 10:08:40 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-08-24 10:08:59 +0000 |
commit | d6d50244df14c43832cca5199b04e659557c20dd (patch) | |
tree | 8c676f1c037abed4641e73c1885516ab5c7ff0fc /usr | |
parent | 2103b25243715930aae8019b0ee2e8a16b7418fe (diff) | |
download | pfsense-d6d50244df14c43832cca5199b04e659557c20dd.zip pfsense-d6d50244df14c43832cca5199b04e659557c20dd.tar.gz |
Fixes #764. Import the patch in the ticket to allow per-host netboot file on dhcpd settings.
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/services_dhcp_edit.php | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/usr/local/www/services_dhcp_edit.php b/usr/local/www/services_dhcp_edit.php index 26d3580..51da0f4 100755 --- a/usr/local/www/services_dhcp_edit.php +++ b/usr/local/www/services_dhcp_edit.php @@ -73,7 +73,7 @@ if (!is_array($config['dhcpd'][$if]['staticmap'])) { } $static_arp_enabled=isset($config['dhcpd'][$if]['staticarp']); - +$netboot_enabled=isset($config['dhcpd'][$if]['netboot']); $a_maps = &$config['dhcpd'][$if]['staticmap']; $ifcfgip = get_interface_ip($if); $ifcfgsn = get_interface_subnet($if); @@ -87,10 +87,12 @@ if (isset($id) && $a_maps[$id]) { $pconfig['mac'] = $a_maps[$id]['mac']; $pconfig['hostname'] = $a_maps[$id]['hostname']; $pconfig['ipaddr'] = $a_maps[$id]['ipaddr']; + $pconfig['netbootfile'] = $a_maps[$id]['netbootfile']; $pconfig['descr'] = $a_maps[$id]['descr']; } else { $pconfig['mac'] = $_GET['mac']; $pconfig['hostname'] = $_GET['hostname']; + $pconfig['netbootfile'] = $_GET['netbootfile']; $pconfig['descr'] = $_GET['descr']; } @@ -156,6 +158,7 @@ if ($_POST) { $mapent['ipaddr'] = $_POST['ipaddr']; $mapent['hostname'] = $_POST['hostname']; $mapent['descr'] = $_POST['descr']; + $mapent['netbootfile'] = $_POST['netbootfile']; if (isset($id) && $a_maps[$id]) $a_maps[$id] = $mapent; @@ -219,6 +222,14 @@ include("head.inc"); <input name="hostname" type="text" class="formfld unknown" id="hostname" size="20" value="<?=htmlspecialchars($pconfig['hostname']);?>"> <br> <span class="vexpl"><?=gettext("Name of the host, without domain part.");?></span></td> </tr> + <?php if($netboot_enabled) { ?> + <tr> + <td width="22%" valign="top" class="vncell">Netboot filename</td> + <td width="78%" class="vtable"> + <input name="netbootfile" type="text" class="formfld unknown" id="netbootfile" size="20" value="<?=htmlspecialchars($pconfig['netbootfile']);?>"> + <br> <span class="vexpl">Name of the file that should be loaded when this host boots off of the network, overrides setting on main page.</span></td> + </tr> + <?php } ?> <tr> <td width="22%" valign="top" class="vncell"><?=gettext("Description");?></td> <td width="78%" class="vtable"> |