From owner-freebsd-stable@FreeBSD.ORG Fri Jul 8 20:36:27 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E326916A41C for ; Fri, 8 Jul 2005 20:36:27 +0000 (GMT) (envelope-from scottro@nyc.rr.com) Received: from mail.starlofashions.com (mail.starlofashions.com [12.44.50.125]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6C2B743D48 for ; Fri, 8 Jul 2005 20:36:24 +0000 (GMT) (envelope-from scottro@nyc.rr.com) Received: from nyserve3.starlofashions.com ([192.0.0.230]) by mail.starlofashions.com (8.9.3/8.9.3) with ESMTP id QAA00846 for ; Fri, 8 Jul 2005 16:36:20 -0400 Received: from uws1.starlofashions.com (uws1.starlofashions.com [192.168.8.230]) by nyserve3.starlofashions.com (Postfix) with SMTP id 6DB9860DB for ; Fri, 8 Jul 2005 16:36:20 -0400 (EDT) Received: by uws1.starlofashions.com (sSMTP sendmail emulation); Fri, 8 Jul 2005 16:36:20 -0400 Date: Fri, 8 Jul 2005 16:36:20 -0400 From: Scott Robbins To: freebsd-stable@freebsd.org Message-ID: <20050708203620.GA52798@uws1.starlofashions.com> Mail-Followup-To: freebsd-stable@freebsd.org References: <42CED9B5.6080100@math.missouri.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; x-action=pgp-signed Content-Disposition: inline In-Reply-To: <42CED9B5.6080100@math.missouri.edu> User-Agent: mutt-ng devel (FreeBSD) Subject: Re: How to set polling for printer upon startup X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jul 2005 20:36:28 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Fri, Jul 08, 2005 at 02:53:25PM -0500, Stephen Montgomery-Smith wrote: > My printer doesn't work very well unless I type > lpcontrol -p > What is the "correct" way to make this happen when the computer first boots up > - is there some setting in device.hints or something I can put in the kernel > config so that it defaults to this? Well, I have a very complex and esoteric script that I load. However, perhaps with years of study, you can duplicate it. #!/bin/sh lpcontrol -e (Which is what I need in my case for a similar problem) Just put it into /usr/local/etc/rc.d and make it executable, changing the -p to an -e of course. Call it whatever you wish, but be sure to add an sh extension, e.g. call it lptcontrol.sh That should do it. - -- Scott GPG KeyID EB3467D6 ( 1B848 077D 66F6 9DB0 FDC2 A409 FA54 D575 EB34 67D6) gpg --keyserver pgp.mit.edu --recv-keys EB3467D6 Buffy: Have I ever let you down? Giles: Do you want me to answer that, or shall I just glare? -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFCzuPE+lTVdes0Z9YRAmztAJ48gCcwd0QlTkAkSMKbJNLxTeiy7gCdFA6f Vrd0I0AKNT4KYomP9QE7QrA= =SZBs -----END PGP SIGNATURE-----