Stephen Montgomery-Smith
2005-Jul-08 19:53 UTC
How to set polling for printer upon startup
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? Thanks, Stephen -- Stephen Montgomery-Smith stephen@math.missouri.edu http://www.math.missouri.edu/~stephen
-----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-----
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?I've got: hint.ppc.0.flags="0x28" in my /boot/device.hints to do this. Cheers. -- Jonathan Chen <jonc@chen.org.nz> ---------------------------------------------------------------------- char *p="char *p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}