Hmm you are right, i think i'm tired :) -- Best regards, Loïc BLOT, UNIX systems, security and network expert http://www.unix-experience.fr
Le samedi 24 août 2013 à 23:03 +0000, Christian Weisgerber a écrit : > Loïc BLOT <loic.b...@unix-experience.fr> 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 > <--------------- [demime 1.01d removed an attachment of type application/pgp-signature which had a name of signature.asc]