) >> $NEW_CONFIG } #------------------------------------------------------------------------------ # check if a saved old configuration exists if [ ! -f ${OLD_CONFIG} ]; then # no old config file, so simply use the new one mecho "no old configuration ${OLD_CONFIG} found" mecho "default configuration from package $PACKAGE will be used" cp -p ${PKG_CONFIG} ${NEW_CONFIG} else # do the update if [ ! "$SILENTMODE" = 'TRUE' ]; then mecho "updating configuration ..." mecho "using ${PKG_CONFIG} and ${OLD_CONFIG}" fi update_config # and remove old configuration rm -f ${OLD_CONFIG} fi