#! /bin/sh

. "`dirname $0`/rcdefs"

Print -n "Configuring serial ports... "

ModuleInsert serial

SER_PORTS=""

while read dev io irq flags
do
  case "${dev}" in
  \#* | "")
    continue
    ;;
  *)
    SER_PORTS="${SER_PORTS} ${dev}"
    ${SETSERIAL} ${dev} port ${io} irq ${irq} ${flags}
    ;;
  esac
done < "`dirname $0`/Uarts"

Print "done."

${SETSERIAL} -bg ${SER_PORTS}
