summaryrefslogtreecommitdiffstats
path: root/sys/boot/forth/menu.rc
diff options
context:
space:
mode:
authordteske <dteske@FreeBSD.org>2014-03-03 07:31:55 +0000
committerdteske <dteske@FreeBSD.org>2014-03-03 07:31:55 +0000
commitccce67094aa5e487cc7c97ca7cf7b3e45dd911d8 (patch)
tree9cbc79cd551e084edbe363ebac804e582657b02a /sys/boot/forth/menu.rc
parentccfaf68adbb4f44ab9d2d7a4a13b4e43752b1b37 (diff)
downloadFreeBSD-src-ccce67094aa5e487cc7c97ca7cf7b3e45dd911d8.zip
FreeBSD-src-ccce67094aa5e487cc7c97ca7cf7b3e45dd911d8.tar.gz
MFC r258270:
Add a try-include word (which acts the same as "include") and use it to conditionally include (but ignore failures) /boot/loader.rc.local and /boot/menu.rc.local -- to make customizing the menu easier. Reviewed by: alfred Discussed on: -hackers
Diffstat (limited to 'sys/boot/forth/menu.rc')
-rw-r--r--sys/boot/forth/menu.rc4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/boot/forth/menu.rc b/sys/boot/forth/menu.rc
index 3d8bff9..e49f567 100644
--- a/sys/boot/forth/menu.rc
+++ b/sys/boot/forth/menu.rc
@@ -120,6 +120,10 @@ set optionstoggled_ansi[6]="Verbose..... On"
\
set menu_timeout_command="boot"
+\ Include optional elements defined in a local file
+\
+try-include /boot/menu.rc.local
+
\ Display the main menu (see `menu.4th')
set menuset_initial=1
menuset-loadinitial
OpenPOWER on IntegriCloud