Subject: Re: Cygwin's CVS - can it be a network server?
From: Robert Collins <[email-masked]>
To: Warren Young <[email-masked]>
Cc: [email-masked]
Date: 22 Aug 2001 07:52:55 +1000

On 21 Aug 2001 13:48:55 -0600, Warren Young wrote:
> Christopher Faylor wrote:
> > 
> > Actually, maybe just a symbolic link in /etc to the correct services
> > file would be better.
> 
> I came to that conclusion too, and tried it.  It does work, and it's
> more natural than my original solution.
> 
> > It would have to be added as a post-install script, though, obviously.
> 
> How does Cygwin's post-install system work?  If there's a Bourne shell
> script you can modify, add this:

There is. We probably need hosts as well though...
 
if [ "$OS" = "Windows_NT" ]
then
	servdir="`cygpath -u $SYSTEMROOT`/SYSTEM32/DRIVERS/ETC"
else
 	servdir="`cygpath -u $WINDIR`/SERVICES"
fi
ln -s $servdir/SERVICES /etc/services
ln -s $servdir/HOSTS /etc/hosts

Rob

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