On Mon, Feb 19, 2018 at 4:00 PM, Alexander Nasonov <al...@yandex.ru> wrote: > Kyle Evans wrote: >> + -- Swap the first two menu items on single user boot >> + if (core.isSingleUserBoot()) then >> + local multiuser = menu_entries[1]; >> + local singleuser = menu_entries[2]; >> + >> + menu_entries[2] = multiuser; >> + menu_entries[1] = singleuser; >> + end > > -- Swap the first two menu items on single user boot > if core.isSingleUserBoot() then > menu_entries[1], menu_entries[2] = > menu_entries[2], menu_entries[1] > end >
Noted. I ended up expanding this section a little bit later (see: r329593) and I'm not sure how I feel about the look of this one: -- Shallow copy the table menu_entries = core.shallowCopyTable(menu_entries); menu_entries[1], menu_entries[2] = menu_entries[2], menu_entries[1]; menu_entries[1].name, menu_entries[2].name = menu_entries[1].alternate_name, menu_entries[2].alternate_name; I'll need to sit on that one for a little bit. =) _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"