Set script.lang in the environment to either 'forth' or 'simple' to

reflect what scripting language was compiled into the loader. I
anticipate that being able to find this out quickly from the OK prompt
will be useful in troubleshooting in the future.
This commit is contained in:
Warner Losh 2018-02-09 00:36:55 +00:00
parent 43105e589a
commit 86411ec1d7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=329054
2 changed files with 2 additions and 0 deletions

View File

@ -337,6 +337,7 @@ void
interp_init(void)
{
setenv("script.lang", "forth", 1);
bf_init();
/* Read our default configuration. */
interp_include("/boot/loader.rc");

View File

@ -39,6 +39,7 @@ void
interp_init(void)
{
setenv("script.lang", "simple", 1);
/* Read our default configuration. */
interp_include("/boot/loader.rc");
}