diff --git a/README.md b/README.md index 3266d12..a11341f 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ 1. Extract the contents of root to your filesystem root: ``` -tar x -zvC / -f tailscale-enabler-.tgz +tar x -zvC / -f openwrt-tailscale-enabler-.tgz ``` 2. Install the prerequisites for wget and tailscale: diff --git a/generate-tar.sh b/generate-tar.sh index ec41510..f56eff3 100755 --- a/generate-tar.sh +++ b/generate-tar.sh @@ -1,5 +1,11 @@ #!/bin/sh +if [ "$#" -ne 1 ]; then + echo "[ERR] Please pass in the tag for the file name." + exit 1 +fi + +filename="openwrt-tailscale-enabler-$1.tgz" + # 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/