| 1 |
#! /bin/bash |
| 2 |
|
| 3 |
# check if we already use an external mirror |
| 4 |
grep -q "external mirror" $target/etc/apt/sources.list && exit 0 |
| 5 |
|
| 6 |
cat <<EOM > $target/etc/apt/sources.list |
| 7 |
# external mirror |
| 8 |
deb $ubuntumirror/ubuntu $ubuntudist main restricted universe multiverse |
| 9 |
deb $ubuntumirror/ubuntu $ubuntudist-updates main restricted universe multiverse |
| 10 |
deb $ubuntumirror/ubuntu $ubuntudist-security main restricted universe multiverse |
| 11 |
EOM |
| 12 |
|
| 13 |
if ifclass MINT; then |
| 14 |
ainsl -v /etc/apt/sources.list "deb $mintmirror $mintdist main upstream import backport" |
| 15 |
fi |