Merge pull request #18709 from paper42/tailscale-version
tailscale: fix --version
This commit is contained in:
commit
802818c7f9
2 changed files with 10 additions and 0 deletions
|
@ -27,6 +27,8 @@ PKG_USE_MIPS16:=0
|
||||||
GO_PKG:=\
|
GO_PKG:=\
|
||||||
tailscale.com/cmd/tailscale \
|
tailscale.com/cmd/tailscale \
|
||||||
tailscale.com/cmd/tailscaled
|
tailscale.com/cmd/tailscaled
|
||||||
|
GO_PKG_LDFLAGS:=-X 'tailscale.com/version.Long=$(PKG_VERSION)-$(PKG_RELEASE) (OpenWrt)'
|
||||||
|
GO_PKG_LDFLAGS_X:=tailscale.com/version.Short=$(PKG_VERSION)
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
include ../../lang/golang/golang-package.mk
|
include ../../lang/golang/golang-package.mk
|
||||||
|
|
8
net/tailscale/test.sh
Normal file
8
net/tailscale/test.sh
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
#!/bin/sh
|
||||||
|
if command -v tailscale; then
|
||||||
|
tailscale version | grep "$2" || exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if command -v tailscaled; then
|
||||||
|
tailscaled -version | grep "$2"
|
||||||
|
fi
|
Loading…
Reference in a new issue