xref: /freebsd/share/examples/bootforth/loader.rc (revision f126890a)
1\ Example of the file which is automatically loaded by /boot/loader
2\ on startup.
3
4cr .( Loading Forth extensions:)
5
6\ Load configuration file words
7
8cr .( - loader.4th...)
9
10include /boot/loader.4th
11
12\ Load the screen manipulation words
13
14cr .( - screen.4th...)
15s" /boot/screen.4th" O_RDONLY fopen dup fload fclose
16
17\ Load frame support
18cr .( - frames.4th...)
19s" /boot/frames.4th" O_RDONLY fopen dup fload fclose
20
21\ Load our little menu
22cr .( - menuconf.4th...)
23s" /boot/menuconf.4th" O_RDONLY fopen dup fload fclose
24
25\ Initialize loader.4th stuff
26
27cr cr .( Initializing loader.4th...)
28initialize drop
29
30\ Show the menu
31cr
32main_menu
33
34