#!/bin/sh /etc/rc.common
START=96

boot() {
	stop
	start
}

start() {
	if [ `uci get dnp3modbus.outstation.dnp3_enable` == 1 ]; then
		/usr/bin/dnp3modbus &> /dev/null &
	fi
}

stop() {
    killall dnp3modbus &> /dev/null
	return 0
}

restart() {
	stop
	start
}
