# # Copyright (c) 2005, Petteri Räty # Copyright (c) 2004, Jochen Maes # Copyright (c) 2004, Karl Trygve Kalleberg # Copyright (c) 2004, Gentoo Foundation # # Licensed under the GNU General Public License, v2 # The Azureus config dir has moved olddotazudir="${HOME}/.Azureus" oldgentoocfg="${olddotazudir}/gentoo.config" dotazudir="${HOME}/.azureus" gentoocfg="${dotazudir}/gentoo.config" if [[ -f "${oldgentoocfg}" && -f "${gentoocfg}" ]]; then cat > /dev/stderr < "${gentoocfg}" < /dev/stderr echo 'Unsetting ${UI_OPTIONS} and trying to migrate to ${UI}' > /dev/stderr if [[ ${UI_OPTIONS} = *--ui=console* ]]; then UI=console elif [[ ${UI_OPTIONS} = *--ui=swt* ]]; then UI=swt else echo 'Could not make $UI from $UI_OPTIONS' > /dev/stderr fi unset UI_OPTIONS fi if [[ -z "${UI}" ]]; then echo '$UI not set defaulting to swt' > /dev/stderr UI="swt" fi [[ ! -e "${dotazudir}" ]] && create_initial_config