#!/bin/bash

PROGRAM=/bin/setserial
RUNLEVEL=2

. /etc/init.d/smgl_init

start() {
  echo "Starting setserial..."
  if [ -f /etc/serial.conf ]; then
    while read device args; do
      if [ "${device:0:1}" == "#" -o "$device" = "" ]; then continue; fi
      $PROGRAM -z $device $args
    done < /etc/serial.conf
  fi
}

stop() {
  exit 0
}

status() {
  usage
}

reload()
{
  _restart
}

usage()
{
  echo "Usage: $0 {start|stop|restart|reload}"
}
