Hello,
this evening i was writing pxe automated install modifications on
install.sh and install.sub when i found a bug in installer, when the
console speed is asked.
Original (5.3):
if [[ -n $CDEV ]]; then
_d=${CPROM:-$CDEV}
ask_yn "Change the default console to $_d?" no
$pxe_change_default_console
defcons=$resp
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
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.
Patched:
if [[ -n $CDEV ]]; then
_d=${CPROM:-$CDEV}
ask_yn "Change the default console to $_d?" no
$pxe_change_default_console
defcons=$resp
if [[ $resp == y ]]; then
ask_which "speed" "should $_d use" \
"9600 19200 38400 57600 115200" "9600"
case $resp in
done) defcons=n ;;
*) CSPEED=$resp ;;
esac
fi
fi
Have a nice day.
--
Best regards,
Loïc BLOT,
UNIX systems, security and network expert
http://www.unix-experience.fr
[demime 1.01d removed an attachment of type application/pgp-signature which had
a name of signature.asc]