--- /dev/null
+#! /bin/sh
+
+DOTFILESDIR=$HOME/dotfiles
+MD5SUM=`which md5sum`
+
+if test ! -d $DOTFILESDIR; then
+ echo "$DOTFILESDIR does not exist! exiting"
+ exit 1
+fi
+
+if test -z "$MD5SUM"; then
+ echo "Cannot find md5sum program"
+ exit 1
+fi
+
+for file in $DOTFILESDIR/*; do
+ if test -f $HOME/.$file; then
+ C_MD5SUM=`$MD5SUM < $HOME/.$file`
+ N_MD5SUM=`$MD5SUM < $DOTFILESDIR/$file`
+ if test "$C_MD5SUM" = "$N_MD5SUM"; then
+ rm -f $HOME/.$file
+ else
+ echo "$HOME/.$file different from $DOTFILESDIR/$file, and not symlink skipping"
+ continue
+ fi
+ ln -s $DOTFILESDIR/$file $HOME/.$file
+done
\ No newline at end of file