diff options
author | brooks <brooks@FreeBSD.org> | 2005-03-02 02:46:47 +0000 |
---|---|---|
committer | brooks <brooks@FreeBSD.org> | 2005-03-02 02:46:47 +0000 |
commit | 5960c03b45ee0821adf04d6323fd18b42dafb961 (patch) | |
tree | 51ae8feff1d54be4de7742fe72d483f8356e96a3 /etc/rc.d/lpd | |
parent | 352e54a36d54c7a8fa00f23ecf81dee374a89f06 (diff) | |
download | FreeBSD-src-5960c03b45ee0821adf04d6323fd18b42dafb961.zip FreeBSD-src-5960c03b45ee0821adf04d6323fd18b42dafb961.tar.gz |
Allow chkprintcap(8) to be run before lpd is started. Disabled by
default for now. Default flags create missing directories.
Remove comment about doing this in etc/rc.d/var.
Unlike in the PR, I chose to do this in the lpd script where we reliably
have /usr available.
PR: conf/71488
Submitted by: RZ-FreeBSD0904 at fh-karlsruhe dot de
Diffstat (limited to 'etc/rc.d/lpd')
-rwxr-xr-x | etc/rc.d/lpd | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/etc/rc.d/lpd b/etc/rc.d/lpd index 8ab3a8c..dc2c3f3 100755 --- a/etc/rc.d/lpd +++ b/etc/rc.d/lpd @@ -14,6 +14,14 @@ name="lpd" rcvar=`set_rcvar` command="/usr/sbin/${name}" required_files="/etc/printcap" +start_precmd="_chkprintcap" + +_chkprintcap() +{ + if checkyesno chkprintcap_enable ; then + /usr/sbin/chkprintcap ${chkprintcap_flags} + fi +} load_rc_config $name run_rc_command "$1" |