blob: 3dddb7ffe7caf16cc519181daf98089a55b8035c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
|
\ Menu.rc
\
\ Load required Forth modules
include /boot/forth/version.4th
include /boot/forth/brand.4th
include /boot/forth/menu.4th
include /boot/forth/menu-commands.4th
include /boot/forth/shortcuts.4th
\ Screen prep
clear \ clear the screen (see `screen.4th')
print_version \ print version string (bottom-right; see `version.4th')
draw-beastie \ draw freebsd mascot (on right; see `beastie.4th')
draw-brand \ draw the FreeBSD title (top-left; see `brand.4th')
menu-init \ initialize the menu area (see `menu.4th')
\ Initialize main menu constructs (see `menu.4th')
\ NOTE: To use `non-ansi' variants, add `loader_color=0' to loader.conf(5)
\ NOTE: ANSI variants can use `^' in place of literal `Esc' (ASCII 27)
\
\ MAIN MENU
\
set menuset_name1="main"
set mainmenu_init[1]="init_boot"
set mainmenu_caption[1]="Boot SmartOS [Enter]"
set mainansi_caption[1]="^[1mB^[moot SmartOS ^[1m[Enter]^[m"
set mainmenu_command[1]="boot"
\ keycode set by init_boot
set mainmenu_caption[2]="[Esc]ape to loader prompt"
set mainmenu_command[2]="goto_prompt"
set mainmenu_keycode[2]=27
set mainansi_caption[2]="^[1mEsc^[mape to loader prompt"
\ Enable built-in "Reboot" trailing menuitem
\ NOTE: appears before menu_options if configured
\
set mainmenu_reboot
\ Enable "Options:" separator. When set to a numerical value (1-8), a visual
\ separator is inserted before that menuitem number.
\
set mainmenu_options=4
set mainmenu_caption[4]="Configure Boot [O]ptions..."
set mainmenu_command[4]="2 goto_menu"
set mainmenu_keycode[4]=111
set mainansi_caption[4]="Configure Boot ^[1mO^[mptions..."
\
\ If available, load the "Platform Image Selection" option.
\
try-include /os/pi.rc
\
\ BOOT OPTIONS MENU
\
set menuset_name2="options"
set optionsmenu_caption[1]="Back to Main Menu [Backspace]"
set optionsmenu_command[1]="1 goto_menu"
set optionsmenu_keycode[1]=8
set optionsansi_caption[1]="Back to Main Menu ^[1m[Backspace]^[m"
set optionsmenu_options=2
set optionsmenu_optionstext="Boot Options:"
set optionsmenu_osconsole=2
set optionsmenu_command[2]="cycle_osconsole"
set optionsmenu_keycode[2]=99
set optionsmenu_init[3]="init_verbose"
set optionsmenu_caption[3]="[V]erbose............. Off"
set optionstoggled_text[3]="[V]erbose............. On"
set optionsmenu_command[3]="toggle_verbose"
set optionsmenu_keycode[3]=118
set optionsansi_caption[3]="^[1mV^[merbose............... ^[34;1mOff^[m"
set optionstoggled_ansi[3]="^[1mV^[merbose............... ^[32;7mOn^[m"
set optionsmenu_kmdb=4
set optionsmenu_command[4]="cycle_kmdb"
set optionsmenu_keycode[4]=107
set optionsmenu_init[5]="init_rescue"
set optionsmenu_caption[5]="[R]escue Mode......... Off"
set optionstoggled_text[5]="[R]escue Mode......... On"
set optionsmenu_command[5]="toggle_rescue"
set optionsmenu_keycode[5]=114
set optionsansi_caption[5]="^[1mR^[mescue Mode........... ^[34;1mOff^[m"
set optionstoggled_ansi[5]="^[1mR^[mescue Mode........... ^[32;7mOn^[m"
\ Enable automatic booting (add ``autoboot_delay=N'' to loader.conf(5) to
\ customize the timeout; default is 10-seconds)
\
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
menu-display
|