From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3153 invoked by alias); 10 Sep 2002 18:16:38 -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 3146 invoked from network); 10 Sep 2002 18:16:36 -0000 Received: from unknown (HELO ns.suxdotorg.co.uk) (80.192.161.67) by sources.redhat.com with SMTP; 10 Sep 2002 18:16:36 -0000 Received: from pajhome.org.uk ([192.168.0.250]) by ns.suxdotorg.co.uk (8.12.1/8.12.1) with ESMTP id g8AIHBtX021496 for ; Tue, 10 Sep 2002 19:17:11 +0100 Message-ID: <3D7E3895.A13DDF9B@pajhome.org.uk> Date: Tue, 10 Sep 2002 11:46:00 -0000 From: Paul Johnston X-Accept-Language: en MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Beginnings of a patch: /etc/hosts References: <3D7C6D5F.A9D4CCC5@pajhome.org.uk> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2002-09/txt/msg00481.txt.bz2 (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 #!/bin/sh #-- # Creates symbolic links from some /etc files to their windows equivalents #-- VERBOSE=-v if [ "$OS" = "Windows_NT" ] then WINETC=`/bin/cygpath $SYSTEMROOT`/system32/drivers/etc FILES="hosts protocol services" fi for FILE in $FILES do if [ ! -e /etc/$FILE ] then /bin/ln -s $VERBOSE ${WINETC}/$FILE /etc/$FILE fi done > 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 -- 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/