summaryrefslogtreecommitdiff
path: root/file-get.sh
blob: e9c71362978758235a41215214e3414c2cf6236e (plain)
1
2
3
4
5
6
7
8
#1/bin/sh

set -e
set -x

DEVICE=`lava-group | grep -m1 forwarder | cut -f2`
SOURCE=`lava-network query $DEVICE ipv4 | grep -v LAVA | cut -d: -f2`
wget -O /tmp/testfile http://${SOURCE}/testfile