[debian-edu-commits] r81237 - branches/wheezy/debian-edu-config/share/debian-edu-config/tools

pere at alioth.debian.org pere at alioth.debian.org
Fri Jun 28 10:37:25 UTC 2013


Author: pere
Date: 2013-06-28 10:37:25 +0000 (Fri, 28 Jun 2013)
New Revision: 81237

Modified:
   branches/wheezy/debian-edu-config/share/debian-edu-config/tools/auto-addfirmware
Log:
Make sure the same file name is used everywhere.

Modified: branches/wheezy/debian-edu-config/share/debian-edu-config/tools/auto-addfirmware
===================================================================
--- branches/wheezy/debian-edu-config/share/debian-edu-config/tools/auto-addfirmware	2013-06-28 10:35:35 UTC (rev 81236)
+++ branches/wheezy/debian-edu-config/share/debian-edu-config/tools/auto-addfirmware	2013-06-28 10:37:25 UTC (rev 81237)
@@ -9,9 +9,10 @@
 dist=$(lsb_release -cs)
 arch=$(dpkg --print-architecture)
 mirror=http://http.debian.net/debian
+aptsourcelist=/etc/apt/sources.list.d/auto-addfirmware.list
 
 add_contrib_nonfree() {
-    cat <<EOF > /etc/apt/sources.list.d/auto-addfirmware.list
+    cat <<EOF > $aptsourcelist
 deb $mirror $dist contrib non-free
 deb-src $mirror $dist contrib non-free
 EOF
@@ -66,7 +67,7 @@
     done
 done)"
 
-if [ -e /etc/apt/sources.list.d/auto-addfirmware.list ] ; then
+if [ -e $aptsourcelist ] ; then
     # Fetch updated package lists
     echo "info: Updating APT sources after adding non-free APT source"
     apt-get -qq update




More information about the debian-edu-commits mailing list