Skip to content

Commit

Permalink
openwrt
Browse files Browse the repository at this point in the history
  • Loading branch information
tuna-mirror-server committed Nov 14, 2015
1 parent 92033e3 commit 4c79978
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions scripts/openwrt.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

function sync_openwrt() {
repo_url="$1"
repo_dir="$2"

[ ! -d "$repo_dir" ] && mkdir -p "$repo_dir"
cd $repo_dir
lftp "${repo_url}/" -e "mirror --verbose -P 5 --delete --only-newer; bye"
}

sync_openwrt "http://downloads.openwrt.org/chaos_calmer/15.05/" "${TUNASYNC_WORKING_DIR}/chaos_calmer/15.05"
sync_openwrt "http://downloads.openwrt.org/snapshots/trunk/" "${TUNASYNC_WORKING_DIR}/snapshots/trunk"

0 comments on commit 4c79978

Please sign in to comment.