#! /bin/sh
#
# printer: start or stop printer services.

case "$1" in
start)
    need network

    if [ -r /etc/printcap -a -x /usr/sbin/lpd ]; then
	echo "starting printer services"
	/usr/sbin/lpd
    fi
    ;;
stop)
    if killall -0 lpd; then
	echo "stopping printer services"
	killall lpd
    fi
    ;;
info)
    echo "Printer services"
    ;;
*)
    echo "usage: $0 {start|stop}"
    ;;
esac
