summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Pouzenc <ludovic@pouzenc.fr>2016-03-18 19:57:28 +0100
committerLudovic Pouzenc <ludovic@pouzenc.fr>2016-03-18 19:57:28 +0100
commit9139040e7834b08ccc99e2b7b7acaeadfc17fa33 (patch)
tree451f91f97d0129ed85048eccb1fecc0b72e788d8
parent3cde50bb88bddfd9d0a79e99cf4d6cf4a90981eb (diff)
downloadchd_openwrt-9139040e7834b08ccc99e2b7b7acaeadfc17fa33.zip
chd_openwrt-9139040e7834b08ccc99e2b7b7acaeadfc17fa33.tar.gz
chd_openwrt-9139040e7834b08ccc99e2b7b7acaeadfc17fa33.tar.bz2
Helper script to mirror minimum set of packages
(takes a trace file from a ImageBuilder's run with download.openwrt.org)
-rwxr-xr-xmirrorring-bare-minimum.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/mirrorring-bare-minimum.sh b/mirrorring-bare-minimum.sh
new file mode 100755
index 0000000..6a7adaa
--- /dev/null
+++ b/mirrorring-bare-minimum.sh
@@ -0,0 +1,6 @@
+#!/bin/bash -x
+
+cat $(ls -tr /tmp/build-openwrt-dev.sh_* | tail -n1) \
+| sed -ne 's#[^=]\+=> Downloading http://downloads.openwrt.org/\(.*\)\.$#wget http://downloads.openwrt.org/\1 -O /var/www/openwrt/\1#p' \
+| cat
+# | bash