menu.lua (24a1bd54dc7d8deb3b354f100d36f7b0f43cb610) | menu.lua (fa4a2394a76aadd0702ff5b7eeb7387b678b34a8) |
---|---|
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 --- 206 unchanged lines hidden (view full) --- 215 end 216 kernel_name = kernel_name .. name_color .. choice .. 217 color.default(); 218 return color.highlight("K").."ernel: " .. kernel_name .. 219 " (" .. idx .. 220 " of " .. #all_choices .. ")"; 221 end, 222 func = function(idx, choice, all_choices) | 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 --- 206 unchanged lines hidden (view full) --- 215 end 216 kernel_name = kernel_name .. name_color .. choice .. 217 color.default(); 218 return color.highlight("K").."ernel: " .. kernel_name .. 219 " (" .. idx .. 220 " of " .. #all_choices .. ")"; 221 end, 222 func = function(idx, choice, all_choices) |
223 if (#all_choices > 1) then 224 config.reload(choice); 225 end | 223 config.selectkernel(choice); |
226 end, 227 alias = {"k", "K"} 228 }, 229 230 -- boot options 231 { 232 entry_type = core.MENU_SUBMENU, 233 name = function() --- 93 unchanged lines hidden (view full) --- 327 screen.defcursor(); 328 alias_table = drawer.drawscreen(m); 329 end 330 end 331 332 if (m == menu.welcome) then 333 screen.defcursor(); 334 print("Exiting menu!"); | 224 end, 225 alias = {"k", "K"} 226 }, 227 228 -- boot options 229 { 230 entry_type = core.MENU_SUBMENU, 231 name = function() --- 93 unchanged lines hidden (view full) --- 325 screen.defcursor(); 326 alias_table = drawer.drawscreen(m); 327 end 328 end 329 330 if (m == menu.welcome) then 331 screen.defcursor(); 332 print("Exiting menu!"); |
333 config.loadelf(); |
|
335 return false; 336 end 337 338 return true; 339end 340 341function menu.skip() 342 if (core.bootserial() )then --- 67 unchanged lines hidden --- | 334 return false; 335 end 336 337 return true; 338end 339 340function menu.skip() 341 if (core.bootserial() )then --- 67 unchanged lines hidden --- |