Quote:
Originally Posted by l2fl2f
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