#!/bin/sh # # Copyright 1998 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # error=no echo "## checking common configuration files" while read src dest do [ "$src" = /dev/null ] && continue if [ -f "$dest" ] then echo $dest preserved else echo $dest cp $src $dest || error=yes fi done [ "$error" = yes ] && exit 2 exit 0