From 9139040e7834b08ccc99e2b7b7acaeadfc17fa33 Mon Sep 17 00:00:00 2001 From: Ludovic Pouzenc Date: Fri, 18 Mar 2016 19:57:28 +0100 Subject: Helper script to mirror minimum set of packages (takes a trace file from a ImageBuilder's run with download.openwrt.org) --- mirrorring-bare-minimum.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 mirrorring-bare-minimum.sh 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 -- cgit v1.1