- # AUTOMATIC SERIAL CONSOLE #
- defconsole=$(sed -e 's%.*console=%console=%' /proc/cmdline)
- if echo "${defconsole}" | grep -qs console=ttyS; then
- PORT=$(echo "${defconsole}" | \
- sed -e's%^console=%%' -e's%,.*%%')
- SPEED=$(echo "${defconsole}" | \
- sed -e 's%^console=ttyS[0-9]\+,%%' \
+ if echo "${DEFCONSOLE}" | grep -qs ttyS; then
+ # AUTOMATIC SERIAL CONSOLE #
+ PORT=$(echo "${DEFCONSOLE}" | \
+ sed -e 's%,.*%%')
+ SPEED=$(echo "${DEFCONSOLE}" | \
+ sed -e 's%ttyS[0-9]\+,%%' \