view sources/toys/hdainit.sh @ 1745:8d82dc711a93 draft

Fix the darn ccwrap symlink resolution path logic that was finding the wrong /usr/include. It wasn't distcc's fault. Test _before_ following symlinks, otherwise the original location found doesn't get checked to see if it's valid.
author Rob Landley <rob@landley.net>
date Sun, 22 Feb 2015 20:45:25 -0600
parents 50c3a1575288
children
line wrap: on
line source

# splice hda into /
cp -rFs /usr/overlay/. /

# cleanup copy of _this_ script, and plug gcc so search stops

if [ -z "$DISTCC_HOSTS" ]
then
  echo "Not using distcc."
else
  echo "Distcc acceleration enabled."
  PATH="/usr/distcc:$PATH"
fi

if [ -e /mnt/init ]
then
  X=xx
  echo "Press any key for command line..."
  read -t 3 -n 1 X
  if [ "$X" == xx ]
  then
    echo "Running automated build."
    HANDOFF=/mnt/init
  fi
fi