#!/bin/sh #-- # Creates symbolic links from some /etc files to their windows equivalents #-- VERBOSE=-v OSNAME=`/bin/uname -s` case "$OSNAME" in CYGWIN_NT*) WINETC=`/bin/cygpath $SYSTEMROOT`/system32/drivers/etc ;; CYGWIN_9*) WINETC=`/bin/cygpath $WINBOOTDIR` ;; *) echo "Unknown system type $OSNAME; exiting" >&2; exit 1 ;; esac FILES="hosts protocol services networks" for FILE in $FILES do if [ ! -e /etc/$FILE ] then /bin/ln -s $VERBOSE ${WINETC}/$FILE /etc/$FILE fi done