delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/09/11/03:54:51

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Authentication-Warning: gateway.morrison: john owned process doing -bs
Date: Wed, 11 Sep 2002 09:03:11 +0100 (BST)
From: John Morrison <john DOT r DOT morrison AT ntlworld DOT com>
X-X-Sender: john AT gateway DOT morrison
To: cygwin AT cygwin DOT com
Subject: Re: Beginnings of a patch: /etc/hosts
In-Reply-To: <Pine.GSO.4.44.0209101519230.1269-300000@slinky.cs.nyu.edu>
Message-ID: <Pine.LNX.4.44.0209110900120.3914-100000@gateway.morrison>
MIME-Version: 1.0


On Tue, 10 Sep 2002, Igor Pechtchanski wrote:
> On Tue, 10 Sep 2002, Paul Johnston wrote:
>
> > (back in main cygwin list as Robert pointed out this is not a setup
> > change)
> >
> > Hi,
> >
> > I've created an NT-only postinstall script that should be suitible. I
> > suggest it's called /etc/postinstall/make-etc-links.sh I don't have
> > access to a Win 9x machine right now - if someone else could do this
> > bit, that would be great; alternatively I will be able to do it in the
> > next week or so.
> >
> > Paul

<snip/>

> > > NT has an equivalent to /etc/hosts, so I think the cygwin install
should
> > > create this symbolic link:
> > >
> > > /etc/hosts -> ${SYSTEMROOT}/system32/drivers/etc/hosts
>
> 9x systems also have these files, they should reside in ${WINBOOTDIR}.
> You also omitted a file called 'networks'.
>
> Attached are a new version of your script, as well as a diff with your
> original version.
>
> Note also that the links should probably use proper case for the path and
> filenames, in case someone has CYGWIN=*check_case:strict*.  I'm not sure
> how to do this properly (use [cmd /c "dir /b "`cygpath -w $file`], maybe?)

cygpath -S "output system directory and exit" returns
/cygdrive/c/WINNT/system32 for me.

Would this work under 9x/ME?

J.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019