| delorie.com/archives/browse.cgi | search |
| 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 |
| Message-ID: | <3D7E3895.A13DDF9B@pajhome.org.uk> |
| Date: | Tue, 10 Sep 2002 19:23:17 +0100 |
| From: | Paul Johnston <paj AT pajhome DOT org DOT uk> |
| X-Accept-Language: | en |
| MIME-Version: | 1.0 |
| To: | cygwin AT cygwin DOT com |
| Subject: | Beginnings of a patch: /etc/hosts |
| References: | <3D7C6D5F DOT A9D4CCC5 AT pajhome DOT org DOT 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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |