mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
boot: i can has fancy pants?
boot: move down orb logo by 1 row sys/boot: do the rebranding more properly sys/boot: center the logo sys/boot: more rebranding sys/boot: move logo more to the right sys/boot: OUT OF MY WAY - here comes 'OPNsense' ... who needs Windows anyway?! sys/boot: let's have some colors sys/boot: give it some space
This commit is contained in:
parent
aaca629ba8
commit
2822f8545a
6 changed files with 36 additions and 25 deletions
|
|
@ -34,7 +34,7 @@ variable logoX
|
|||
variable logoY
|
||||
|
||||
\ Initialize logo placement to defaults
|
||||
46 logoX !
|
||||
48 logoX !
|
||||
4 logoY !
|
||||
|
||||
: beastie-logo ( x y -- ) \ color BSD mascot (19 rows x 34 columns)
|
||||
|
|
@ -125,20 +125,20 @@ variable logoY
|
|||
|
||||
: orb-logo ( x y -- ) \ color Orb mascot (15 rows x 30 columns)
|
||||
|
||||
3 + \ beastie adjustment (see `fbsdbw-logo' comments above)
|
||||
4 + \ beastie adjustment (see `fbsdbw-logo' comments above)
|
||||
|
||||
2dup at-xy ." [31m``` [31;1m`[31m" 1+
|
||||
2dup at-xy ." s` `.....---...[31;1m....--.``` -/[31m" 1+
|
||||
2dup at-xy ." +o .--` [31;1m/y:` +.[31m" 1+
|
||||
2dup at-xy ." yo`:. [31;1m:o `+-[31m" 1+
|
||||
2dup at-xy ." y/ [31;1m-/` -o/[31m" 1+
|
||||
2dup at-xy ." .- [31;1m::/sy+:.[31m" 1+
|
||||
2dup at-xy ." / [31;1m`-- /[31m" 1+
|
||||
2dup at-xy ." `: [31;1m:`[31m" 1+
|
||||
2dup at-xy ." `: [31;1m:`[31m" 1+
|
||||
2dup at-xy ." / [31;1m/[31m" 1+
|
||||
2dup at-xy ." .- [31;1m-.[31m" 1+
|
||||
2dup at-xy ." -- [31;1m-.[31m" 1+
|
||||
2dup at-xy ." [30;1m``` [31;1m`[30;1m" 1+
|
||||
2dup at-xy ." s` `.....---...[31;1m....--.``` -/[30;1m" 1+
|
||||
2dup at-xy ." +o .--` [31;1m/y:` +.[30;1m" 1+
|
||||
2dup at-xy ." yo`:. [31;1m:o `+-[30;1m" 1+
|
||||
2dup at-xy ." y/ [31;1m-/` -o/[30;1m" 1+
|
||||
2dup at-xy ." .- [31;1m::/sy+:.[30;1m" 1+
|
||||
2dup at-xy ." / [31;1m`-- /[30;1m" 1+
|
||||
2dup at-xy ." `: [31;1m:`[30;1m" 1+
|
||||
2dup at-xy ." `: [31;1m:`[30;1m" 1+
|
||||
2dup at-xy ." / [31;1m/[30;1m" 1+
|
||||
2dup at-xy ." .- [31;1m-.[30;1m" 1+
|
||||
2dup at-xy ." -- [31;1m-.[30;1m" 1+
|
||||
2dup at-xy ." `:` [31;1m`:`" 1+
|
||||
2dup at-xy ." [31;1m.-- `--." 1+
|
||||
at-xy ." .---.....----.[37m"
|
||||
|
|
@ -149,7 +149,7 @@ variable logoY
|
|||
|
||||
: orbbw-logo ( x y -- ) \ B/W Orb mascot (15 rows x 32 columns)
|
||||
|
||||
3 + \ beastie adjustment (see `fbsdbw-logo' comments above)
|
||||
4 + \ beastie adjustment (see `fbsdbw-logo' comments above)
|
||||
|
||||
2dup at-xy ." ``` `" 1+
|
||||
2dup at-xy ." s` `.....---.......--.``` -/" 1+
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ variable brandX
|
|||
variable brandY
|
||||
|
||||
\ Initialize logo placement
|
||||
2 brandX !
|
||||
17 brandX !
|
||||
1 brandY !
|
||||
|
||||
: fbsd-logo ( x y -- ) \ "FreeBSD" [wide] logo in B/W (7 rows x 42 columns)
|
||||
|
|
@ -42,6 +42,16 @@ variable brandY
|
|||
2dup at-xy ." | | | | | __/ __/| |_) |____) | |__| |" 1+
|
||||
2dup at-xy ." | | | | | | || | | |" 1+
|
||||
at-xy ." |_| |_| \___|\___||____/|_____/|_____/ "
|
||||
;
|
||||
|
||||
: opnsns-logo ( x y -- ) \ "OPNsense" [wide] logo in B/W (6 rows x 47 columns)
|
||||
|
||||
2dup at-xy ." ______ _____ _____ " 1+
|
||||
2dup at-xy ." / __ |/ ___ |/ __ | " 1+
|
||||
2dup at-xy ." | | | | |__/ | | | |___ ___ _ __ ___ ___ " 1+
|
||||
2dup at-xy ." | | | | ___/| | | / __|/ _ \ '_ \/ __|/ _ \" 1+
|
||||
2dup at-xy ." | |__| | | | | | \__ \ __/ | | \__ \ __/" 1+
|
||||
at-xy ." |_____/|_| |_| /__|___/\___|_| |_|___/\___|"
|
||||
|
||||
\ Put the cursor back at the bottom
|
||||
0 25 at-xy
|
||||
|
|
@ -55,6 +65,7 @@ variable brandY
|
|||
\
|
||||
\ NAME DESCRIPTION
|
||||
\ fbsd FreeBSD logo
|
||||
\ opnsns OPNsense logo
|
||||
\
|
||||
\ NOTE: Setting `loader_brand' to the value of an existing function
|
||||
\ (such as "mycustom-brand") will cause that symbol to be executed.
|
||||
|
|
@ -80,12 +91,12 @@ variable brandY
|
|||
then
|
||||
|
||||
s" loader_brand" getenv dup -1 = if
|
||||
brandX @ brandY @ fbsd-logo
|
||||
brandX @ brandY @ opnsns-logo
|
||||
drop exit
|
||||
then
|
||||
|
||||
2dup s" fbsd" compare-insensitive 0= if
|
||||
brandX @ brandY @ fbsd-logo
|
||||
2dup s" opnsns" compare-insensitive 0= if
|
||||
brandX @ brandY @ opnsns-logo
|
||||
2drop exit
|
||||
then
|
||||
|
||||
|
|
|
|||
|
|
@ -249,7 +249,7 @@ variable root_state
|
|||
|
||||
cr
|
||||
." To get back to the menu, type `menu' and press ENTER" cr
|
||||
." or type `boot' and press ENTER to start FreeBSD." cr
|
||||
." or type `boot' and press ENTER to start OPNsense." cr
|
||||
cr
|
||||
|
||||
FALSE \ exit the menu
|
||||
|
|
|
|||
|
|
@ -620,7 +620,7 @@ create kernelsbuf 256 allot
|
|||
|
||||
\ Print the frame caption at (x,y)
|
||||
s" loader_menu_title" getenv dup -1 = if
|
||||
drop s" Welcome to FreeBSD"
|
||||
drop s" Welcome to OPNsense "
|
||||
then
|
||||
TRUE ( use default alignment )
|
||||
s" loader_menu_title_align" getenv dup -1 <> if
|
||||
|
|
|
|||
|
|
@ -645,10 +645,10 @@ os_dos:
|
|||
#ifndef SAVE_MORE_MEMORY /* 'DOS' remapped to 'WIN' if no room */
|
||||
.ascii "DO"; .byte 'S'|0x80
|
||||
#endif
|
||||
os_win: .ascii "Wi"; .byte 'n'|0x80
|
||||
os_win: .ascii "W"; .byte 'n'|0x80
|
||||
os_linux: .ascii "Linu"; .byte 'x'|0x80
|
||||
os_freebsd: .ascii "Free"
|
||||
os_bsd: .ascii "BS"; .byte 'D'|0x80
|
||||
os_freebsd: .ascii "OPNs"
|
||||
os_bsd: .ascii "ens"; .byte 'e'|0x80
|
||||
#ifndef SAVE_MORE_MEMORY
|
||||
os_ext: .ascii "EX"; .byte 'T'|0x80
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -271,7 +271,7 @@ main(void)
|
|||
|
||||
for (;;) {
|
||||
if (!autoboot || !OPT_CHECK(RBX_QUIET))
|
||||
printf("\nFreeBSD/x86 boot\n"
|
||||
printf("\nOPNsense/x86 boot\n"
|
||||
"Default: %u:%s(%u,%c)%s\n"
|
||||
"boot: ",
|
||||
dsk.drive & DRV_MASK, dev_nm[dsk.type], dsk.unit,
|
||||
|
|
|
|||
Loading…
Reference in a new issue