summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-09-24 21:45:39 +0200
committerErich Eckner <git@eckner.net>2016-09-24 21:52:51 +0200
commit2caa0ca771a397aeb27a8e93fc6d8c4b73ee14b5 (patch)
treeb9e7df8f08941bf3fed470a6da2daa6676bed4e9
parent34e4fcf9464be8fbbdd986651da939a2ff10ad1b (diff)
downloadmakekernel-2caa0ca771a397aeb27a8e93fc6d8c4b73ee14b5.tar.xz
kann jetzt auch proxy
-rw-r--r--makekernel.8.in3
-rw-r--r--makekernel.conf.in1
-rw-r--r--makekernel.in4
3 files changed, 6 insertions, 2 deletions
diff --git a/makekernel.8.in b/makekernel.8.in
index d703aa8..e8de042 100644
--- a/makekernel.8.in
+++ b/makekernel.8.in
@@ -27,6 +27,9 @@ The configfile \fB#ETCDIR#/makekernel.conf\fP is a bash script, which defines th
.B "kernelDir"
Directory which contains the source tree(s) of the kernel(s).
.TP
+.B "proxyPrefix"
+Prefix for urls to download via a proxy.
+.TP
.B "before_install_hook"
Function to execute before installing the kernel.
.TP
diff --git a/makekernel.conf.in b/makekernel.conf.in
index a5053c0..0447cad 100644
--- a/makekernel.conf.in
+++ b/makekernel.conf.in
@@ -1,6 +1,7 @@
#!/bin/bash
kernelDir=#SRCDIR#/kernel
+proxy='http://mirror.home.eckner.net/'
before_install_hook() {
mount -o remount,rw /boot
diff --git a/makekernel.in b/makekernel.in
index b0a7dfa..99e375c 100644
--- a/makekernel.in
+++ b/makekernel.in
@@ -17,8 +17,8 @@ usage () {
}
dlExVer () {
- wget -nd "$1.xz"
- wget -nd "$1.sign"
+ wget -nd "${proxyPrefix}$1.xz"
+ wget -nd "${proxyPrefix}$1.sign"
xz -d "$2.xz"
if ! gpg --verify $2{.sign,}
then