You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

config-bootstrap-fixup 382B

123456789101112131415
  1. #!/bin/bash
  2. wd=`pwd`
  3. # Default host IP is 10.0.2.2
  4. if [ -z "$GITIAN_HOST_IP" ]; then
  5. GITIAN_HOST_IP=10.0.2.2
  6. fi
  7. # Default to host IP if the MIRROR_HOST is not set, or set to 127.0.0.1
  8. if [ -z "$MIRROR_HOST" ] || [ "$MIRROR_HOST" == "127.0.0.1" ]; then
  9. MIRROR_HOST=$GITIAN_HOST_IP
  10. fi
  11. sed "s;HOSTIP;$MIRROR_HOST;g" < target-bin/bootstrap-fixup.in > target-bin/bootstrap-fixup