diff options
author | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2016-03-18 19:57:28 +0100 |
---|---|---|
committer | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2016-03-18 19:57:28 +0100 |
commit | 9139040e7834b08ccc99e2b7b7acaeadfc17fa33 (patch) | |
tree | 451f91f97d0129ed85048eccb1fecc0b72e788d8 /mirrorring-bare-minimum.sh | |
parent | 3cde50bb88bddfd9d0a79e99cf4d6cf4a90981eb (diff) | |
download | chd_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)
Diffstat (limited to 'mirrorring-bare-minimum.sh')
-rwxr-xr-x | mirrorring-bare-minimum.sh | 6 |
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 |