#!/bin/sh

case "$1" in
  start)
    echo -n "Enable RS485 ... "
	
    /usr/sbin/rs485conf -e1 -o1 -a0 -r0 /dev/ttymxc3
    echo $!	
    ;;
  stop)
    echo -n "Disable RS485 ... "
    /usr/sbin/rs485conf -e0 -o1 -a0 -r0 /dev/ttymxc3
    ;;
  *)
    echo "Usage: $0 (start|stop)"
    exit 1
esac

exit 0
