1#!/bin/sh 2# 3# $NetBSD: lpd,v 1.5 2002/03/22 04:33:59 thorpej Exp $
| 1#!/bin/sh 2# 3# $NetBSD: lpd,v 1.5 2002/03/22 04:33:59 thorpej Exp $
|
4# $FreeBSD: head/etc/rc.d/lpd 142969 2005-03-02 02:46:47Z brooks $
| 4# $FreeBSD: head/etc/rc.d/lpd 165664 2006-12-30 22:53:20Z yar $
|
5# 6 7# PROVIDE: lpd 8# REQUIRE: DAEMON 9# BEFORE: LOGIN 10 11. /etc/rc.subr 12 13name="lpd" 14rcvar=`set_rcvar` 15command="/usr/sbin/${name}" 16required_files="/etc/printcap"
| 5# 6 7# PROVIDE: lpd 8# REQUIRE: DAEMON 9# BEFORE: LOGIN 10 11. /etc/rc.subr 12 13name="lpd" 14rcvar=`set_rcvar` 15command="/usr/sbin/${name}" 16required_files="/etc/printcap"
|
17start_precmd="_chkprintcap"
| 17start_precmd="chkprintcap"
|
18
| 18
|
19_chkprintcap()
| 19chkprintcap()
|
20{ 21 if checkyesno chkprintcap_enable ; then 22 /usr/sbin/chkprintcap ${chkprintcap_flags} 23 fi 24} 25 26load_rc_config $name 27run_rc_command "$1"
| 20{ 21 if checkyesno chkprintcap_enable ; then 22 /usr/sbin/chkprintcap ${chkprintcap_flags} 23 fi 24} 25 26load_rc_config $name 27run_rc_command "$1"
|