-
-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Lazyloading tailscale scripts instead of softlinks.
- Loading branch information
Showing
5 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
tailscale-enabler*.tgz |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 "$@" |