--- make-etc-links.sh-orig 2002-09-11 18:08:39.000000000 -0400 +++ make-etc-links.sh 2002-09-11 18:57:01.000000000 -0400 @@ -2,9 +2,12 @@ #-- # Creates symbolic links from some /etc files to their windows equivalents # -# Version: 0.4 +# Version: 0.5 # # ChangeLog: +# v0.5 Igor Pechtchanski : +# Move FILES to top; removed VERBOSE (thx Paul Johnston) +# Print messages on abnormal exit # v0.4 Igor Pechtchanski : # Use $SYSTEMROOT and $WINDIR to determine the OS (thx Warren Young) # Check for existence of $WINETC directory (thx Paul Johnston) @@ -22,7 +25,7 @@ # Initial version #-- -VERBOSE=-v +FILES="hosts protocols services networks" WINHOME=`/bin/cygpath -W` @@ -33,12 +36,13 @@ elif [ -n "$WINDIR" ] then WINETC="$WINHOME" else + echo "Unknown system type; exiting" >&2 exit 0 fi -FILES="hosts protocols services networks" if [ ! -d "$WINETC" ] then + echo "Directory $WINETC does not exist; exiting" >&2 exit 0 fi @@ -48,7 +52,7 @@ do then # Windows only uses the first 8 characters WFILE=`expr substr "$FILE" 1 8` - /bin/ln -s $VERBOSE "$WINETC/$WFILE" "/etc/$FILE" + /bin/ln -s -v "$WINETC/$WFILE" "/etc/$FILE" fi done