View Single Post
Old 14th May 2008
l2fl2f's Avatar
l2fl2f l2fl2f is offline
Real Name: Yves Guerin
Port Guard
 
Join Date: May 2008
Location: Montreal, Quebec, Canada
Posts: 25
Default

Hello,

testing:

I add the following line into the beastie.4th:

# variables section
variable bootyg

I add the following line into the beastie-menu function
printmenuitem ." Escape to loader prompt" escapekey !
==> printmenuitem ." Network" bootyg !
printmenuitem ." Reboot" rebootkey !


I add this lines of code into the beastie-start function (copy-paste)
dup bootyg @ = if
s" 4" s" sysctl_var" setenv
0 boot
then

I echo into my netif script: sysctl -a | grep sysctl_var

I try kern.dummy : nothing change so I grab a variable that can be set: kern.domainname without any success. In fact after reading again the manpage for loader I realize that the following sysctl variables are changeable via the loader:
- hw.physmem
- etc.

So via the bootloader is may be impossible without modifying the code of the loader and of the kernel.

Next step: to get the flags that the boot prompt provide as "boot -s" to boot in single mode. So if you have some information on how the kernel deal with arguments given by the bootloader just drop a line.

Thank in advance for your help.
Reply With Quote