Linux-kernel mailing list archive 1997-48,: Re: ISSUE: lp0/lp1 incompatibility

# Re: ISSUE: lp0/lp1 incompatibility

Linux Developer (kernel@prj.pcimporters.com)
Wed, 3 Dec 1997 16:57:32 -0500 (EST)

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Albert D. Cahalan: "Re: Linux 2.1.69.."
- Previous message: Robert Bihlmeyer: "Re: truncate() can fail"

On 3 Dec 1997, John Goerzen wrote:

> This is a strange but very bothersome problem.
> In 2.0.x, my printer (hooked up to the first parallel port) is
> /dev/lp1. In 2.1.x (2.1.65, to be specific), it is /dev/lp0. This
> means that I must edit my printcap every time I boot up with a
> different kernel version.
> Suggestions on how to fix this?

Very simple way. (I'm not good with perl, so you'll have to write this)

uname -a |grep 2.1.
if 2.1 exist
cp /etc/printcap-2.1.x /etc/printcap
if 2.1 not exist
cp /etc/printcap-2.0.x /etc/printcap

Add this to your rc.d scripts. Should work nicely.

-Phillip R. Jaenke [InterNIC Handle: PRJ5] (kernel@prj.pcimporters.com)
MIS Department, PC Importers, Inc. 800.319.9284, x4262
Head of Development, The Improvement Linux Project.
Penguin0: Cyrix Cx6x86 PR200L+, 64M, 1.6G, 1.2G, 4.3G, EE/Pro, 2.0.30
Penguin1: Intel P5-100, 32M, 4G, NE2k, 2.1.60-Improvement
The Diamond FireGL Series - When you're ready for a REAL video card.

- Next message: Albert D. Cahalan: "Re: Linux 2.1.69.."
- Previous message: Robert Bihlmeyer: "Re: truncate() can fail"