2001-06-16 07:16:14 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2002-06-13 22:14:37 +00:00
|
|
|
# $NetBSD: lpd,v 1.5 2002/03/22 04:33:59 thorpej Exp $
|
|
|
|
# $FreeBSD$
|
2001-06-16 07:16:14 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
# PROVIDE: lpd
|
|
|
|
# REQUIRE: DAEMON
|
2002-06-13 22:14:37 +00:00
|
|
|
# BEFORE: LOGIN
|
2001-06-16 07:16:14 +00:00
|
|
|
|
|
|
|
. /etc/rc.subr
|
|
|
|
|
|
|
|
name="lpd"
|
2002-06-13 22:14:37 +00:00
|
|
|
rcvar=`set_rcvar`
|
2001-06-16 07:16:14 +00:00
|
|
|
command="/usr/sbin/${name}"
|
|
|
|
required_files="/etc/printcap"
|
2006-12-30 22:53:20 +00:00
|
|
|
start_precmd="chkprintcap"
|
2005-03-02 02:46:47 +00:00
|
|
|
|
2006-12-30 22:53:20 +00:00
|
|
|
chkprintcap()
|
2005-03-02 02:46:47 +00:00
|
|
|
{
|
|
|
|
if checkyesno chkprintcap_enable ; then
|
|
|
|
/usr/sbin/chkprintcap ${chkprintcap_flags}
|
|
|
|
fi
|
|
|
|
}
|
2001-06-16 07:16:14 +00:00
|
|
|
|
|
|
|
load_rc_config $name
|
|
|
|
run_rc_command "$1"
|