Re: ISSUE: lp0/lp1 incompatibility

JuanJo Ciarlante (irriga@impsat1.com.ar)
Wed, 3 Dec 1997 16:33:18 -0300 (ARST)


This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.

---1463809278-1537418254-881177598=:20654
Content-Type: TEXT/PLAIN; charset=US-ASCII

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?
I use "/dev/lp" in printcap and use a symbolic link set at boot
time.
Try attached script (call it from /etc/rc.d/rc.local).
Beware that there maybe a "race" condition under which lpd has been
started BEFORE the script does the link (if last boot was diff version)

Regards
-- Juanjo
Yo don't need an hologram to know...
Nor you need to sell your brain to anyone.
Yo can feel it. It's Linux.

---1463809278-1537418254-881177598=:20654
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="rc.lp"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.3.95.971203163318.20654B@kosa>
Content-Description:

IyEvYmluL3NoDQplY2hvIC1uICJTZWxlY3RpbmcgL2Rldi9scCAuLi4iDQpj
YXNlIGB1bmFtZSAtcmAgaW4NCgkyLjAuKikgbG4gLXNmIC9kZXYvbHAxIC9k
ZXYvbHA7Ow0KCTIuMS4qKSBsbiAtc2YgL2Rldi9scDAgL2Rldi9scDs7DQpl
c2FjDQplY2hvICIiDQoNCg==
---1463809278-1537418254-881177598=:20654--