Current location

narf Source control manager Git

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVignan Lavu <vignan.lavu@gmail.com>2015-01-16 17:56:26 +0530
committerVignan Lavu <vignan.lavu@gmail.com>2015-01-18 00:02:36 +0530
commit3a1065b30abc6b62e895574a81b814857f7dcb01 (patch)
tree260eb81b3fef83eacbcd8003325d69c83760a9f8 /bin/freedombox-customize
parentdbfa5d26ea5bb1b6d0bdcb0f03d6330cb7bf52f6 (diff)
Ability to set specific components based on targets
main component for virtualbox target main contrib non-free components for others targets.
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 7d71cd1..896d4f5 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