diff options
author | scottl <scottl@FreeBSD.org> | 2003-06-10 22:04:09 +0000 |
---|---|---|
committer | scottl <scottl@FreeBSD.org> | 2003-06-10 22:04:09 +0000 |
commit | c26dd9475587567b584fa8511d8a8de24ba27e44 (patch) | |
tree | fee6b3c9c022e31e4d113bd8fd9647f583d3cedb /sys/boot | |
parent | 349c6025d0a60742a40c122420d7285baefc97ab (diff) | |
download | FreeBSD-src-c26dd9475587567b584fa8511d8a8de24ba27e44.zip FreeBSD-src-c26dd9475587567b584fa8511d8a8de24ba27e44.tar.gz |
Don't start the beastie menu if the 'beastie_disable' variable is set to
'YES'.
If the user selects to escape to the loader prompt, set 'autoboot_delay'
to 'NO' so that the prompt timer doesn't run.
Diffstat (limited to 'sys/boot')
-rw-r--r-- | sys/boot/forth/beastie.4th | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/sys/boot/forth/beastie.4th b/sys/boot/forth/beastie.4th index f363a9a..415f100 100644 --- a/sys/boot/forth/beastie.4th +++ b/sys/boot/forth/beastie.4th @@ -154,6 +154,12 @@ variable rebootkey set-current : beastie-start + s" beastie_disable" getenv + dup -1 <> if + s" YES" compare-insensitive 0= if + exit + then + then beastie-menu s" autoboot_delay" getenv dup -1 = if @@ -200,7 +206,11 @@ set-current s" YES" s" boot_single" setenv s" boot" evaluate then - dup escapekey @ = if 2drop exit then + dup escapekey @ = if + 2drop + s" NO" s" autoboot_delay" setenv + exit + then rebootkey @ = if s" reboot" evaluate then repeat ; |