This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Cygwin's CVS - can it be a network server?


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]