debxo 0.1 release [PATCH] cache downloaded kernel
James Cameron
quozl at laptop.org
Sun Aug 24 20:04:22 EDT 2008
Caches the downloaded kernel package in the current working directory,
and also resumes from where a previous interrupted download was up to.
---
initchroot.sh | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/initchroot.sh b/initchroot.sh
index 025f8c2..1c5b986 100755
--- a/initchroot.sh
+++ b/initchroot.sh
@@ -83,8 +83,13 @@ EOF
echo "en_US.UTF-8 UTF-8" >${ROOT_DIR}/etc/locale.gen
(chroot ${ROOT_DIR} aptitude install -y locales)
+# install and cache latest kernel from dilinger
k=$(wget -O- http://queued.mit.edu/~dilinger/builds-master/ | sed -ne 's/.*href="\(.\+\)_i386.deb".*/\1_i386.deb/p' | tail -n1)
-wget -O ${ROOT_DIR}/${k} http://queued.mit.edu/~dilinger/builds-master/${k}
+if [ ! -f ${k} ]; then
+ wget --continue --output-document=${k}.part http://queued.mit.edu/~dilinger/builds-master/${k} && \
+ mv ${k}.part ${k}
+fi
+cp ${k} ${ROOT_DIR}/
(chroot ${ROOT_DIR} dpkg -i /${k})
rm -f ${ROOT_DIR}/${k}
--
1.5.6.3
--
James Cameron mailto:quozl at us.netrek.org http://quozl.netrek.org/
More information about the Devel
mailing list