View Single Post
Old 14th May 2008
ephemera's Avatar
ephemera ephemera is offline
Knuth's homeboy
 
Join Date: Apr 2008
Posts: 537
Default

Quote:
Originally Posted by l2fl2f View Post
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
did you try Richardpl's suggestion:

kenv | grep sysctl_var

or

case in $(kenv sysctl_var)
1) echo home network ;;
2) echo office network ;;
3) echo dhcp ;;
*) echo no network ;;
esac
Reply With Quote