menu.lua (c6879c6c14eedbd060ba588a3129a6c60ebbe783) | menu.lua (e414851f3eb7a9dd2af8209eac4ada307cb6ff8e) |
---|---|
1-- 2-- SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3-- 4-- Copyright (c) 2015 Pedro Souza <pedrosouza@freebsd.org> 5-- Copyright (C) 2018 Kyle Evans <kevans@FreeBSD.org> 6-- All rights reserved. 7-- 8-- Redistribution and use in source and binary forms, with or without --- 298 unchanged lines hidden (view full) --- 307 end 308 kernel_name = kernel_name .. name_color .. 309 choice .. color.resetfg() 310 return color.highlight("K") .. "ernel: " .. 311 kernel_name .. " (" .. idx .. " of " .. 312 #all_choices .. ")" 313 end, 314 func = function(_, choice, _) | 1-- 2-- SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3-- 4-- Copyright (c) 2015 Pedro Souza <pedrosouza@freebsd.org> 5-- Copyright (C) 2018 Kyle Evans <kevans@FreeBSD.org> 6-- All rights reserved. 7-- 8-- Redistribution and use in source and binary forms, with or without --- 298 unchanged lines hidden (view full) --- 307 end 308 kernel_name = kernel_name .. name_color .. 309 choice .. color.resetfg() 310 return color.highlight("K") .. "ernel: " .. 311 kernel_name .. " (" .. idx .. " of " .. 312 #all_choices .. ")" 313 end, 314 func = function(_, choice, _) |
315 if loader.getenv("kernelname") ~= nil then 316 loader.perform("unload") 317 end |
|
315 config.selectKernel(choice) 316 end, 317 alias = {"k", "K"}, 318 }, 319 -- boot options 320 { 321 entry_type = core.MENU_SUBMENU, 322 name = "Boot " .. color.highlight("O") .. "ptions", --- 152 unchanged lines hidden --- | 318 config.selectKernel(choice) 319 end, 320 alias = {"k", "K"}, 321 }, 322 -- boot options 323 { 324 entry_type = core.MENU_SUBMENU, 325 name = "Boot " .. color.highlight("O") .. "ptions", --- 152 unchanged lines hidden --- |