summaryrefslogtreecommitdiff
path: root/setup-alpine.in
diff options
context:
space:
mode:
authorJeff Bilyk <jbilyk@gmail.com>2010-12-23 20:49:31 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-12-28 14:23:04 +0000
commitca99d9e3232d621f6764da6643cc3cc3b828ab0c (patch)
tree6ca09d62bfae5277bb87314686bd06055aa9c122 /setup-alpine.in
parentca0e10950a5db60121ac741f0bad28af9bb504b9 (diff)
downloadalpine-conf-ca99d9e3232d621f6764da6643cc3cc3b828ab0c.zip
alpine-conf: add script to add dl-3 internet repos from setup-alpine script
ref # 487
Diffstat (limited to 'setup-alpine.in')
-rw-r--r--setup-alpine.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/setup-alpine.in b/setup-alpine.in
index 8d1aa0f..29bb868 100644
--- a/setup-alpine.in
+++ b/setup-alpine.in
@@ -67,3 +67,9 @@ _hn=${_hn%%.*}
sed -i -e "s/^127\.0\.0\.1.*/127.0.0.1\t${_hn}.${_dn:-$(get_fqdn)} ${_hn} localhost.localdomain localhost/" /etc/hosts
+printf "Setup internet apk repositories? [y/N]?"
+default_read setuprepos "n"
+
+if [ $setuprepos == "Y" ] || [ $setuprepos == "y" ]; then
+ $PREFIX/sbin/setup-apkrepos
+fi