5 changed files with 48 additions and 0 deletions
@ -0,0 +1,5 @@
|
||||
#!/bin/sh |
||||
|
||||
# Falls back to busybox tar syntax if running on openwrt busybox tar rather than GNU tar |
||||
filename="tailscale-enabler-$(git rev-parse HEAD | cut -c1-5).tgz" |
||||
tar -czvf $filename usr/ etc/ || tar c -zvf $filename usr/ etc/ |
@ -0,0 +1,23 @@
|
||||
#!/bin/sh |
||||
|
||||
version='1.2.10_mips' |
||||
|
||||
if [ ! -f /tmp/tailscale ]; then |
||||
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 |
||||
|
||||
wget -O- https://pkgs.tailscale.com/stable/tailscale_${version}.tgz | tar x -zvf - -C /tmp -T /tmp/tailscale_${version}_files.txt |
||||
|
||||
mv /tmp/tailscale_$version/* /tmp |
||||
rm -rf /tmp/tailscale_${version}* |
||||
|
||||
echo "Done!" |
||||
|
||||
fi |
||||
|
||||
/tmp/tailscale "[email protected]" |
@ -0,0 +1,19 @@
|
||||
#!/bin/sh |
||||
|
||||
version='1.2.10_mips' |
||||
|
||||
if [ ! -f /tmp/tailscaled ]; then |
||||
echo "Downloading Tailscale ${version} .." |
||||
|
||||
echo -e "tailscale_${version}/tailscaled" > /tmp/tailscale_${version}_files.txt |
||||
|
||||
wget -O- https://pkgs.tailscale.com/stable/tailscale_${version}.tgz | tar x -zvf - -C /tmp -T /tmp/tailscale_${version}_files.txt |
||||
|
||||
mv /tmp/tailscale_$version/* /tmp |
||||
rm -rf /tmp/tailscale_${version}* |
||||
|
||||
echo "Done!" |
||||
|
||||
fi |
||||
|
||||
/tmp/tailscaled "[email protected]" |
Loading…
Reference in new issue