From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2572 invoked by alias); 11 Sep 2002 07:54:25 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 2539 invoked from network); 11 Sep 2002 07:54:24 -0000 Received: from unknown (HELO mta01-svc.ntlworld.com) (62.253.162.41) by sources.redhat.com with SMTP; 11 Sep 2002 07:54:24 -0000 Received: from gateway.morrison ([213.104.71.75]) by mta01-svc.ntlworld.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020911075423.GLTI292.mta01-svc.ntlworld.com@gateway.morrison> for ; Wed, 11 Sep 2002 08:54:23 +0100 Received: from gateway.morrison (localhost [127.0.0.1]) by gateway.morrison (8.12.3/8.12.3/Debian -4) with ESMTP id g8B83BV0003942 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=FAIL) for ; Wed, 11 Sep 2002 09:03:12 +0100 Received: from localhost (john@localhost) by gateway.morrison (8.12.3/8.12.3/Debian -4) with ESMTP id g8B83BSG003938 for ; Wed, 11 Sep 2002 09:03:11 +0100 X-Authentication-Warning: gateway.morrison: john owned process doing -bs Date: Wed, 11 Sep 2002 00:59:00 -0000 From: John Morrison X-X-Sender: john@gateway.morrison To: cygwin@cygwin.com Subject: Re: Beginnings of a patch: /etc/hosts In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2002-09/txt/msg00494.txt.bz2 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 > > > 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/