From owner-freebsd-current Tue Aug 1 09:22:55 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.11/8.6.6) id JAA29342 for current-outgoing; Tue, 1 Aug 1995 09:22:55 -0700 Received: from halloran-eldar.lcs.mit.edu (halloran-eldar.lcs.mit.edu [18.26.0.159]) by freefall.cdrom.com (8.6.11/8.6.6) with SMTP id JAA29332 ; Tue, 1 Aug 1995 09:22:51 -0700 Received: by halloran-eldar.lcs.mit.edu; (5.65/1.1.3.6) id AA17282; Tue, 1 Aug 1995 12:22:44 -0400 Date: Tue, 1 Aug 1995 12:22:44 -0400 From: Garrett Wollman Message-Id: <9508011622.AA17282@halloran-eldar.lcs.mit.edu> To: Gary Clark II Cc: freebsd-current@freefall.cdrom.com Subject: sysctl (lpt control) In-Reply-To: <199508010145.SAA00586@freefall.cdrom.com> References: <199508010145.SAA00586@freefall.cdrom.com> Sender: current-owner@FreeBSD.org Precedence: bulk < said: > How hard would it be to add the ability to turn printer poll mode > off and on via a sysctl variable? Or could we add it to sysconfig? > I see this question ALL of the time. The devconf mechanism was specifically designed to perform this task. However, the current implementation leaves something to be desired. For the moment, I think the best way to perform this operation is to create a `lptcontrol' script that opens the device and does an ioctl(). -GAWollman -- Garrett A. Wollman | Shashish is simple, it's discreet, it's brief. ... wollman@lcs.mit.edu | Shashish is the bonding of hearts in spite of distance. Opinions not those of| It is a bond more powerful than absence. We like people MIT, LCS, ANA, or NSA| who like Shashish. - Claude McKenzie + Florent Vollant