blob: d46e066d9155730f14099f6eb5549e49e23f266d [file] [log] [blame]
# Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
cfgd="/usr/local/portage/chromiumos/chromeos/config"
# Make sure the board's /etc/portage/env is a symlink and not a dir.
for board_root in /build/*; do
envd="${board_root}/etc/portage/env"
if [ -d "${envd}" ]; then
sudo rm -rf --one-file-system "${envd}"
sudo ln -s "${cfgd}/env" "${envd}"
fi
done
# Make sure we have bashrc on the host.
sudo ln -sfT "${cfgd}/bashrc-host" /etc/portage/bashrc
exit 0