Skip to content

Commit c5f4753

Browse files
committed
feature: Use Berlin-Mirrors per default
1 parent aaafe2e commit c5f4753

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

build/build.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ function usage() {
3838
echo
3939
echo "FALTER_MIRROR env variable:"
4040
echo " sets the base URL of a mirror which serves copies of downloads.openwrt.org and firmware.berlin.freifunk.net."
41+
echo " Per default, freifunk-berlin mirrors are used. For OpenWrt standard, set to 'openwrt'. For custom, give your URL."
4142
echo " default: <empty>"
4243
echo
4344
echo "FALTER_DEBUG env variable:"
@@ -57,6 +58,11 @@ set -e
5758
set -x
5859

5960
if [ -z "$FALTER_MIRROR" ] ; then
61+
stdmirror="https://mirror.berlin.freifunk.net/"
62+
dlmirror="${stdmirror}downloads.openwrt.org"
63+
srcmirror="${stdmirror}sources.openwrt.org"
64+
gitmirror="${stdmirror}github.com"
65+
elif [ "$FALTER_MIRROR" = "openwrt" ]; then
6066
dlmirror="https://downloads.openwrt.org"
6167
srcmirror="https://sources.openwrt.org"
6268
gitmirror="https://github.com"

0 commit comments

Comments
 (0)