Comments (6)
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.
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.
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.
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 2Looks 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.
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.
Closing this since the issue is with access to the website.
from openwrt-tailscale-enabler.
Related Issues (20)
- Binary path change HOT 1
- Installation hangs while writing to stdout HOT 6
- failed to connect to local tailscaled; it doesn't appear to be running (sudo systemctl start tailscaled ?) HOT 3
- tailscale cert error HOT 4
- How do i uninstall it? HOT 1
- Disable auto-update HOT 3
- Headscale not able to access automatically HOT 3
- Unable to establish SSL connection when "tailscale up" HOT 2
- how to Uninstall tailscale on openwrt HOT 1
- it's keep downloading tailscale HOT 1
- Step error HOT 2
- Everytime reboot openwrt, tailscale can't work HOT 5
- Unusual use after openwrt restart HOT 3
- bug HOT 3
- requests & bug: stable version for architectures are differents
- unable to start the service, due to update probably
- Kenapa downloadingnya ke versi tailscale 1.52.1 ? padahal sy instal tgz dari link update terbaru ? HOT 1
- Can't install Tailscale - init.d permissions & bin/tailscaled - read-only HOT 2
- how to fix the client version != server version HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openwrt-tailscale-enabler.