Current location

narf Source control manager Git

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Valleroy <jvalleroy@mailbox.org>2015-01-25 16:37:54 -0500
committerJames Valleroy <jvalleroy@mailbox.org>2015-01-25 16:37:54 -0500
commitd4ec43edb78cc3496cb8e3cc6666a2b28befdcdf (patch)
treec91d8338e4d7ebaa0d818b12d58c17818cfc3525 /bin/freedombox-customize
parent6a55ddbc951b56289edda50304bc65050cef0efb (diff)
parent3a1065b30abc6b62e895574a81b814857f7dcb01 (diff)
Merge pull request #10 from vignanl/repo_archive
Allows us to enable/disable non-free components.
Diffstat (limited to 'bin/freedombox-customize')
-rwxr-xr-xbin/freedombox-customize10
1 files changed, 8 insertions, 2 deletions
diff --git a/bin/freedombox-customize b/bin/freedombox-customize
index 10a2a83..587cac1 100755
--- a/bin/freedombox-customize
+++ b/bin/freedombox-customize
@@ -48,9 +48,15 @@ disable_eatmydata_override() {
set_apt_sources() {
NEW_MIRROR="$1"
+ COMPONENTS="main"
+ if [ "$ENABLE_NONFREE" = "yes" ]
+ then
+ COMPONENTS="main contrib non-free"
+ fi
+
cat <<EOF > etc/apt/sources.list
-deb $NEW_MIRROR $SUITE main contrib non-free
-deb-src $NEW_MIRROR $SUITE main contrib non-free
+deb $NEW_MIRROR $SUITE $COMPONENTS
+deb-src $NEW_MIRROR $SUITE $COMPONENTS
#deb http://security.debian.org/ $SUITE/updates main
#deb-src http://security.debian.org/ $SUITE/updates main