svn commit: r339307 - head/stand/lua
Kyle Evans
kevans at FreeBSD.org
Thu Oct 11 17:16:40 UTC 2018
Author: kevans
Date: Thu Oct 11 17:16:39 2018
New Revision: 339307
URL: https://svnweb.freebsd.org/changeset/base/339307
Log:
lualoader: Provide a 'menu' command to redraw the menu at the loader prompt
Reported by: allanjude
Approved by: re (kib)
Modified:
head/stand/lua/menu.lua
Modified: head/stand/lua/menu.lua
==============================================================================
--- head/stand/lua/menu.lua Thu Oct 11 15:12:10 2018 (r339306)
+++ head/stand/lua/menu.lua Thu Oct 11 17:16:39 2018 (r339307)
@@ -29,7 +29,7 @@
-- $FreeBSD$
--
-
+local cli = require("cli")
local core = require("core")
local color = require("color")
local config = require("config")
@@ -464,6 +464,11 @@ function menu.autoboot(delay)
local cmd = loader.getenv("menu_timeout_command") or "boot"
cli_execute_unparsed(cmd)
+end
+
+-- CLI commands
+function cli.menu(...)
+ menu.run()
end
return menu
More information about the svn-src-all
mailing list