local my_basename
for path in ${CONFIG_PROTECT} ; do
- path="${ROOT}${path}"
+ path="${EROOT}${path}"
# Do not traverse hidden directories such as .svn or .git.
find_opts="-name .* -type d -prune -o -name ._cfg????_*"
if [ ! -d "${path}" ]; then
rpath=$(echo "${file/\/\///}" | sed -e "s:/[^/]*$::")
rfile=$(echo "${file/\/\///}" | sed -e "s:^.*/::")
for mpath in ${CONFIG_PROTECT_MASK}; do
- mpath="${ROOT}${mpath}"
+ mpath="${EROOT}${mpath}"
mpath=$(echo "${mpath/\/\///}")
if [[ "${rpath}" == "${mpath}"* ]]; then
mv ${rpath}/${rfile} ${rpath}/${rfile:10}
type portageq > /dev/null || exit $?
eval $(portageq envvar -v CONFIG_PROTECT \
- CONFIG_PROTECT_MASK PORTAGE_CONFIGROOT PORTAGE_TMPDIR ROOT USERLAND)
+ CONFIG_PROTECT_MASK PORTAGE_CONFIGROOT PORTAGE_TMPDIR EROOT USERLAND)
export PORTAGE_TMPDIR
TMP="${PORTAGE_TMPDIR}/etc-update-$$"