ryanc
4
There’s a conflict in the policy routing rules.
Here’s a script to build the latest version on Linux (requires git and go to be installed):
#!/bin/bash
set -uo pipefail
trap 's=$?; echo ": Error on line "$LINENO": $BASH_COMMAND"; exit $s' ERR
IFS=$'\n\t'
function build_dist {
echo Build: tailscale-${VERSION}_$1
env GOOS=linux GOARCH=$1 ./build_dist.sh tailscale.com/cmd/tailscale && mv tailscale{,-${VERSION}_$1}
echo Build: tailscaled-${VERSION}_$1
env GOOS=linux GOARCH=$1 ./build_dist.sh tailscale.com/cmd/tailscaled && mv tailscaled{,-${VERSION}_$1}
}
cd ~/code/tailscale
CURRENT_TAG="$(git describe --tags)"
git fetch --tags || true
REV="$(git rev-list --tags --max-count=1)"
LATEST_TAG="$(git describe --tags $REV)"
if [ "$CURRENT_TAG" != "$LATEST_TAG" ]; then
git reset --hard
git checkout "$LATEST_TAG"
# patch policy routing rule priorities
grep -lrP '\b52[1357]0\b' . \
| xargs -n1 sed -Ei 's/\b52([1357])0\b/13\10/g'
fi
export VERSION=$(cat VERSION.txt)
build_dist amd64
build_dist arm
build_dist arm64
export GOMIPS=softfloat
build_dist mips
For the GL-MT1300, I believe you’ll want the mips version.
Here’s a patched one I compiled: