This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Beginnings of a patch: /etc/hosts

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/ 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


> > > NT has an equivalent to /etc/hosts, so I think the cygwin install
> > > 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?


Unsubscribe info:
Bug reporting:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]