Loïc BLOT <[email protected]> wrote:
> if [[ $resp == y ]]; then
> ask_which "speed" "should $_d use" \
> "9600 19200 38400 57600 115200" $CSPEED
> case $resp in
> done) defcons=n ;;
> *) CSPEED=$resp ;;
> esac
> fi
>
> By adding a 5th argument to ask_which, i have seen that $CSPEED isn't
> found, and in fact it's right. Before this ask_which CSPEED isn't set,
> it's set after.
That analysis can't be right. When I install OpenBSD on a Soekris
with the comBIOS default serial speed of 19200, the installer prompt
offers 19200 as default.
And a quick look at install.sub shows that the call to questions()
is preceded by this:
--------------->
CONSOLE=$(scan_dmesg '/^\([^ ]*\).*: console$/s//\1/p')
CONSOLE=${CONSOLE% }
[[ -n $CONSOLE ]] && CSPEED=$(stty speed)
# Look for the serial device matching the console. If we are not installing
# from a serial console, just find the first serial device that could be used
# as a console. If a suitable device is found, set CDEV, CTTY, CSPEED, CPROM.
md_consoleinfo
<---------------
--
Christian "naddy" Weisgerber [email protected]