diff options
author | Michael Brown <mcb30@ipxe.org> | 2016-07-19 16:44:18 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2016-07-19 17:07:53 +0100 |
commit | f5cf4f706ec27e995b8431f885b61b5cdbcef968 (patch) | |
tree | 56227cff2e147087ae8abcafa472f36b9c27fdf4 /src/core/settings.c | |
parent | 1fdc7da4358bda233b0f1a9cb8cd27c92830f6b9 (diff) | |
download | ipxe-f5cf4f706ec27e995b8431f885b61b5cdbcef968.zip ipxe-f5cf4f706ec27e995b8431f885b61b5cdbcef968.tar.gz ipxe-f5cf4f706ec27e995b8431f885b61b5cdbcef968.tar.bz2 |
[settings] Allow settings blocks to specify a sibling ordering
Allow settings blocks to provide an explicit default ordering between
siblings, with lower precedence than the existing ${priority} setting.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/core/settings.c')
-rw-r--r-- | src/core/settings.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/settings.c b/src/core/settings.c index 42bb5e5..c306054 100644 --- a/src/core/settings.c +++ b/src/core/settings.c @@ -452,6 +452,8 @@ static void reprioritise_settings ( struct settings *settings ) { tmp_priority = fetch_intz_setting ( tmp, &priority_setting ); if ( priority > tmp_priority ) break; + if ( settings->order > tmp->order ) + break; } list_add_tail ( &settings->siblings, &tmp->siblings ); |