#!/bin/bash if [ "$1" = "gentoo-mirror" ] then echo -n "Prepending Dijjer to the list of mirrors in /etc/make.conf..." sed -i -e 's|^GENTOO_MIRRORS="|&http://127.0.0.1:9115/http://distfiles.gentoo.org/ |' \ /etc/make.conf echo " Done" else echo "Run with argument 'gentoo-mirror' to use Dijjer for retrieving distfiles" fi