#!/sbin/svc
#  LCDproc LCD display driver

MYLISTING="LCD display driver"

CFGFILE=/etc/lcdproc/LCDd.conf

# start(), stop()
#  Use the standard daemonize and kill_pid functions if pre-requisite devices
#  and files exist.

config_ok() {
	[ -c /dev/lcd -a -r ${CFGFILE}.local ]
}

start() {
	config_ok && daemonize /usr/sbin/LCDd -f -c $CFGFILE 
}

stop() {
	config_ok && kill_pid
}

