Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Oct 2018 17:16:39 +0000 (UTC)
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r339307 - head/stand/lua
Message-ID:  <201810111716.w9BHGd09004789@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201810111716.w9BHGd09004789>