#!/sbin/svc
#  LCDproc LCD display driver

MYLISTING="LCD display driver"
CONTROL_GROUP="conf"

CFGFILE=/etc/lcdproc/LCDd.conf

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

config_ok() {
	[ -r ${CFGFILE}.local ] || return 1
	[ -c /dev/lcd ] && return 0
	grep "^lcd_port" /etc/gsli2c/devices.local > /dev/null 2>&1
}

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

stop() {
	config_ok && kill_pid
}

