public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Paul Johnston <paj@pajhome.org.uk>
To: cygwin@cygwin.com
Subject: Beginnings of a patch: /etc/hosts
Date: Tue, 10 Sep 2002 11:46:00 -0000	[thread overview]
Message-ID: <3D7E3895.A13DDF9B@pajhome.org.uk> (raw)
In-Reply-To: <3D7C6D5F.A9D4CCC5@pajhome.org.uk>

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

  parent reply	other threads:[~2002-09-10 18:16 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-09  2:45 Suggestion: /etc/hosts Paul Johnston
2002-09-09  5:38 ` Nicholas Wourms
2002-09-09  5:40   ` Marcos Lorenzo de Santiago
2002-09-09  6:51 ` Joe Buehler
2002-09-09  7:32   ` Christopher Faylor
2002-09-10  2:19     ` Paul Johnston
2002-09-11  7:43       ` Jim
2002-09-09 11:25 ` news
     [not found] ` <E17oTbC-0001AV-00@quimby.gnus.org>
2002-09-10  9:52   ` Shankar Unni
2002-09-10 11:46 ` Paul Johnston [this message]
2002-09-10 13:36   ` Beginnings of a patch: /etc/hosts Igor Pechtchanski
2002-09-11  0:59     ` John Morrison
2002-09-11  2:06       ` Corinna Vinschen
2002-09-11  9:57   ` Joe Buehler
2002-09-11 11:17     ` Igor Pechtchanski
2002-09-11 11:42       ` Joe Buehler
2002-09-11 12:39         ` Igor Pechtchanski
2002-09-11 14:24           ` Paul Johnston
2002-09-11 14:53             ` Warren Young
2002-09-11 15:37               ` Igor Pechtchanski
2002-09-11 15:40                 ` Paul Johnston
2002-09-11 16:15                   ` Igor Pechtchanski
2002-09-11 16:35                     ` Robert Collins
2002-09-11 17:10                       ` Randall R Schulz
2002-09-11 17:26                         ` OT " Igor Pechtchanski
2002-09-12  4:33                           ` Nicholas Wourms
2002-09-12  4:46                             ` Nicholas Wourms
2002-09-11 19:00                         ` Christopher Faylor
2002-09-12  8:56                           ` Joe Buehler
2002-09-11 23:25                         ` Robert Collins
2002-09-12  4:11                         ` Nicholas Wourms
2002-09-11 17:14                       ` Igor Pechtchanski
2002-09-12  1:27                         ` Robert Collins
2002-09-11 17:54                 ` Igor Pechtchanski
2002-09-12  4:08                 ` Nicholas Wourms
2002-09-12 10:08                   ` Warren Young
2002-09-12 10:11                 ` Warren Young
2002-09-10 13:54 ` Suggestion: /etc/hosts Warren Young

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3D7E3895.A13DDF9B@pajhome.org.uk \
    --to=paj@pajhome.org.uk \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).