GithubHelp home page GithubHelp logo

Comments (6)

carlsue avatar carlsue commented on May 25, 2024

i try this ,can work-----vi /usr/bin/tailscale* like this:
tailscale_version="1.44.0"
latest_version="$tailscale_version"
[root@xxx:/root]#tailscale up
Downloading Tailscale 1.44.0_mipsle ..
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 20.8M 100 20.8M 0 0 1799k 0 0:00:11 0:00:11 --:--:-- 2377k

from openwrt-tailscale-enabler.

carlsue avatar carlsue commented on May 25, 2024

final:

#!/bin/sh

set -e

if [ ! -f /tmp/tailscale ]; then
    arch=`uname -m`
    if [ "$arch" == "mips" ]; then
        endianness=`echo -n I | hexdump -o | awk '{ print (substr($2,6,1)=="1") ? "le" : ""; exit }'`
    elif [ "$arch" == "armv7l" ]; then
        arch=arm
    elif [ "$arch" == "aarch64" ]; then
        arch=arm64
    elif [ "$arch" == "x86_64" ]; then
        arch=amd64
    fi

    tailscale_version="1.44.0"

    latest_version="$tailscale_version"

    version="${tailscale_version}_${arch}${endianness}"

    echo "Downloading Tailscale ${version} .."

    echo -e "tailscale_${version}/tailscale" > /tmp/tailscale_${version}_files.txt

    if [ ! -f /tmp/tailscaled ]; then
        echo -e "tailscale_${version}/tailscaled" >> /tmp/tailscale_${version}_files.txt
    fi

    #curl -O -k https://pkgs.tailscale.com/stable/tailscale_${version}.tgz | tar x -zvf - -C /tmp -T /tmp/tailscale_${version}_files.txt
    tar x -zvf /mnt/xxxxx/tailscale_${tailscale_version}_mipsle.tgz -C /tmp -T /tmp/tailscale_${version}_files.txt
    mv /tmp/tailscale_$version/* /tmp
    rm -rf /tmp/tailscale_${version}*

    echo "Done!"
fi

/tmp/tailscale "$@"

from openwrt-tailscale-enabler.

adyanth avatar adyanth commented on May 25, 2024

Could you please run this command in the shell and provide the output?

wget -O- https://pkgs.tailscale.com/stable/ | grep tailscale_ | head -1 | cut -d'_' -f 2

Looks like it is getting a 404 trying to pull the version, resulting in an empty version. It works fine for me.

Also, the way you have now is perfectly fine if you are okay with manually updating the version.

from openwrt-tailscale-enabler.

carlsue avatar carlsue commented on May 25, 2024

Could you please run this command in the shell and provide the output?

wget -O- https://pkgs.tailscale.com/stable/ | grep tailscale_ | head -1 | cut -d'_' -f 2

Looks like it is getting a 404 trying to pull the version, resulting in an empty version. It works fine for me.

Also, the way you have now is perfectly fine if you are okay with manually updating the version.

[root@xxx:/tmp]#wget -O- https://pkgs.tailscale.com/stable/ | grep tailscale_ |
head -1 | cut -d'_' -f 2
Connecting to pkgs.tailscale.com (199.38.181.239:443)
wget: server returned error: HTTP/1.0 400 Bad Request
it look like the wget have some problem,curl can work standalone,but can not run in your script,when i instad wget with it.

from openwrt-tailscale-enabler.

adyanth avatar adyanth commented on May 25, 2024

Yeah I am not sure why the tailscale website gets a 404. You can comment out the autoupdate lines on both tailscale and tailscaled files and should be good to go.

from openwrt-tailscale-enabler.

adyanth avatar adyanth commented on May 25, 2024

Closing this since the issue is with access to the website.

from openwrt-tailscale-enabler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.