From c72269db38e37c0d50cccf2756177bf77add652f Mon Sep 17 00:00:00 2001
From: Robert Nelson <robertcnelson@gmail.com>
Date: Wed, 5 Mar 2014 08:46:44 -0600
Subject: [PATCH] cleanUP: use mirror for kernel

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
---
 beagleboard.org_image.sh | 6 +++---
 eewiki_barefs_image.sh   | 2 +-
 eewiki_base_image.sh     | 2 +-
 rcn-ee_image.sh          | 8 ++++----
 rcn-ee_test_image.sh     | 8 ++++----
 5 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/beagleboard.org_image.sh b/beagleboard.org_image.sh
index 32019ce89..5189f8555 100755
--- a/beagleboard.org_image.sh
+++ b/beagleboard.org_image.sh
@@ -90,7 +90,7 @@ minimal_armel () {
 	esac
 
 	#When doing offical releases, always hard lock the kernel version...
-	#chroot_KERNEL_HTTP_DIR="http://rcn-ee.net/deb/${release}-${dpkg_arch}/v3.8.13-bone41/"
+	#chroot_KERNEL_HTTP_DIR="${mirror}/${release}-${dpkg_arch}/v3.8.13-bone41/"
 
 	tempdir=$(mktemp -d -p ${DIR}/ignore)
 
@@ -254,7 +254,7 @@ kernel_chooser () {
 		rm -rf ${tempdir}/LATEST-${SUBARCH} || true
 	fi
 
-	wget --no-verbose --directory-prefix=${tempdir}/ http://rcn-ee.net/deb/${release}-${dpkg_arch}/LATEST-${SUBARCH}
+	wget --no-verbose --directory-prefix=${tempdir}/ ${mirror}/${release}-${dpkg_arch}/LATEST-${SUBARCH}
 	FTP_DIR=$(cat ${tempdir}/LATEST-${SUBARCH} | grep "ABI:1 ${KERNEL_ABI}" | awk '{print $3}')
 	FTP_DIR=$(echo ${FTP_DIR} | awk -F'/' '{print $6}')
 }
@@ -380,7 +380,7 @@ if [ ! "${apt_proxy}" ] ; then
 	apt_proxy=""
 fi
 if [ ! "${mirror}" ] ; then
-	mirror="http://rcn-ee.net/deb"
+	mirror="https://rcn-ee.net/deb"
 fi
 
 #FIXME: (something simple)
diff --git a/eewiki_barefs_image.sh b/eewiki_barefs_image.sh
index 43b99fa81..6b9d7eba0 100755
--- a/eewiki_barefs_image.sh
+++ b/eewiki_barefs_image.sh
@@ -258,7 +258,7 @@ if [ ! "${apt_proxy}" ] ; then
 	apt_proxy=""
 fi
 if [ ! "${mirror}" ] ; then
-	mirror="http://rcn-ee.net/deb"
+	mirror="https://rcn-ee.net/deb"
 fi
 if [ -f ${DIR}/rcn-ee.host ] ; then
 	. ${DIR}/host/rcn-ee-host.sh
diff --git a/eewiki_base_image.sh b/eewiki_base_image.sh
index e21938935..cfde325f0 100755
--- a/eewiki_base_image.sh
+++ b/eewiki_base_image.sh
@@ -261,7 +261,7 @@ if [ ! "${apt_proxy}" ] ; then
 	apt_proxy=""
 fi
 if [ ! "${mirror}" ] ; then
-	mirror="http://rcn-ee.net/deb"
+	mirror="https://rcn-ee.net/deb"
 fi
 if [ -f ${DIR}/rcn-ee.host ] ; then
 	. ${DIR}/host/rcn-ee-host.sh
diff --git a/rcn-ee_image.sh b/rcn-ee_image.sh
index d15a0c0e6..5670bbb31 100755
--- a/rcn-ee_image.sh
+++ b/rcn-ee_image.sh
@@ -59,8 +59,8 @@ minimal_armel () {
 
 #	if [ -f ${DIR}/release ] ; then
 #		chroot_KERNEL_HTTP_DIR="\
-#http://rcn-ee.net/deb/${release}-${dpkg_arch}/v3.13.3-armv7-x10/ \
-#http://rcn-ee.net/deb/${release}-${dpkg_arch}/v3.8.13-bone40/"
+#${mirror}/${release}-${dpkg_arch}/v3.13.3-armv7-x10/ \
+#${mirror}/${release}-${dpkg_arch}/v3.8.13-bone40/"
 #	fi
 
 	tempdir=$(mktemp -d -p ${DIR}/ignore)
@@ -207,7 +207,7 @@ kernel_chooser () {
 		rm -rf ${tempdir}/LATEST-${SUBARCH} || true
 	fi
 
-	wget --no-verbose --directory-prefix=${tempdir}/ http://rcn-ee.net/deb/${release}-${dpkg_arch}/LATEST-${SUBARCH}
+	wget --no-verbose --directory-prefix=${tempdir}/ ${mirror}/${release}-${dpkg_arch}/LATEST-${SUBARCH}
 	FTP_DIR=$(cat ${tempdir}/LATEST-${SUBARCH} | grep "ABI:1 ${KERNEL_ABI}" | awk '{print $3}')
 	FTP_DIR=$(echo ${FTP_DIR} | awk -F'/' '{print $6}')
 }
@@ -338,7 +338,7 @@ if [ ! "${apt_proxy}" ] ; then
 	apt_proxy=""
 fi
 if [ ! "${mirror}" ] ; then
-	mirror="http://rcn-ee.net/deb"
+	mirror="https://rcn-ee.net/deb"
 fi
 if [ -f ${DIR}/rcn-ee.host ] ; then
 	. ${DIR}/host/rcn-ee-host.sh
diff --git a/rcn-ee_test_image.sh b/rcn-ee_test_image.sh
index 462e07ec0..fe8948954 100755
--- a/rcn-ee_test_image.sh
+++ b/rcn-ee_test_image.sh
@@ -59,8 +59,8 @@ minimal_armel () {
 
 #	if [ -f ${DIR}/release ] ; then
 #		chroot_KERNEL_HTTP_DIR="\
-#http://rcn-ee.net/deb/${release}-${dpkg_arch}/v3.13.3-armv7-x10/ \
-#http://rcn-ee.net/deb/${release}-${dpkg_arch}/v3.8.13-bone40/"
+#${mirror}/${release}-${dpkg_arch}/v3.13.3-armv7-x10/ \
+#${mirror}/${release}-${dpkg_arch}/v3.8.13-bone40/"
 #	fi
 
 	tempdir=$(mktemp -d -p ${DIR}/ignore)
@@ -178,7 +178,7 @@ kernel_chooser () {
 		rm -rf ${tempdir}/LATEST-${SUBARCH} || true
 	fi
 
-	wget --no-verbose --directory-prefix=${tempdir}/ http://rcn-ee.net/deb/${release}-${dpkg_arch}/LATEST-${SUBARCH}
+	wget --no-verbose --directory-prefix=${tempdir}/ ${mirror}/${release}-${dpkg_arch}/LATEST-${SUBARCH}
 	FTP_DIR=$(cat ${tempdir}/LATEST-${SUBARCH} | grep "ABI:1 ${KERNEL_ABI}" | awk '{print $3}')
 	FTP_DIR=$(echo ${FTP_DIR} | awk -F'/' '{print $6}')
 }
@@ -309,7 +309,7 @@ if [ ! "${apt_proxy}" ] ; then
 	apt_proxy=""
 fi
 if [ ! "${mirror}" ] ; then
-	mirror="http://rcn-ee.net/deb"
+	mirror="https://rcn-ee.net/deb"
 fi
 if [ -f ${DIR}/rcn-ee.host ] ; then
 	. ${DIR}/host/rcn-ee-host.sh
-- 
GitLab