summaryrefslogtreecommitdiffstats
path: root/src/hci/tui
diff options
context:
space:
mode:
authorMichael Brown2013-07-13 15:06:20 +0200
committerMichael Brown2013-07-13 15:11:45 +0200
commit66ea4581256449fe9dcb26340851c09ffd9d6290 (patch)
tree89144d4ecd20220f55328cd9d267d27dc4495465 /src/hci/tui
parent[settings] Expose PCI configuration space via settings mechanism (diff)
downloadipxe-66ea4581256449fe9dcb26340851c09ffd9d6290.tar.gz
ipxe-66ea4581256449fe9dcb26340851c09ffd9d6290.tar.xz
ipxe-66ea4581256449fe9dcb26340851c09ffd9d6290.zip
[settings] Make "netX" settings block function as a symbolic link
Add a facility for settings blocks to act as symbolic links to other settings blocks, and reimplement the "netX" virtual settings block using this facility. The primary advantage of this approach is that unscoped settings such as ${mac} and ${filename} will now reflect the settings obtained from the most recently opened network device: in most cases, this will mean the settings obtained from the most recent DHCP attempt. This should improve conformance to the principle of least astonishment. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/hci/tui')
-rw-r--r--src/hci/tui/settings_ui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hci/tui/settings_ui.c b/src/hci/tui/settings_ui.c
index 403d1245..eb82ae54 100644
--- a/src/hci/tui/settings_ui.c
+++ b/src/hci/tui/settings_ui.c
@@ -441,7 +441,7 @@ static void reveal_setting_row ( struct setting_widget *widget,
static void init_widget ( struct setting_widget *widget,
struct settings *settings ) {
- widget->settings = settings;
+ widget->settings = settings_target ( settings );
widget->num_rows = select_setting_row ( widget, 0 );
widget->first_visible = SETTINGS_LIST_ROWS;
draw_title_row ( widget );