menu.lua (d87577468fed4efd1e1b603519b53f65b845c6c8) | menu.lua (303253e55c3874183b743eac2ce27577e5b609cf) |
---|---|
1-- 2-- Copyright (c) 2015 Pedro Souza <pedrosouza@freebsd.org> 3-- All rights reserved. 4-- 5-- Redistribution and use in source and binary forms, with or without 6-- modification, are permitted provided that the following conditions 7-- are met: 8-- 1. Redistributions of source code must retain the above copyright --- 119 unchanged lines hidden (view full) --- 128 core.setVerbose(); 129 end, 130 alias = {"v", "V"} 131 }, 132 }, 133}; 134 135menu.welcome = { | 1-- 2-- Copyright (c) 2015 Pedro Souza <pedrosouza@freebsd.org> 3-- All rights reserved. 4-- 5-- Redistribution and use in source and binary forms, with or without 6-- modification, are permitted provided that the following conditions 7-- are met: 8-- 1. Redistributions of source code must retain the above copyright --- 119 unchanged lines hidden (view full) --- 128 core.setVerbose(); 129 end, 130 alias = {"v", "V"} 131 }, 132 }, 133}; 134 135menu.welcome = { |
136 entries = { | 136 entries = function() 137 local menu_entries = menu.welcome.all_entries; 138 -- Swap the first two menu items on single user boot 139 if (core.isSingleUserBoot()) then 140 local multiuser = menu_entries[1]; 141 local singleuser = menu_entries[2]; 142 143 menu_entries[2] = multiuser; 144 menu_entries[1] = singleuser; 145 end 146 return menu_entries; 147 end, 148 all_entries = { |
137 -- boot multi user 138 { 139 entry_type = core.MENU_ENTRY, 140 name = function() 141 return color.highlight("B") .. "oot Multi user " .. 142 color.highlight("[Enter]"); 143 end, 144 func = function() --- 273 unchanged lines hidden --- | 149 -- boot multi user 150 { 151 entry_type = core.MENU_ENTRY, 152 name = function() 153 return color.highlight("B") .. "oot Multi user " .. 154 color.highlight("[Enter]"); 155 end, 156 func = function() --- 273 unchanged lines hidden --- |