mirror of
https://github.com/openwrt/packages.git
synced 2026-05-31 06:51:51 +08:00
tor: add version check override
Add version check override script. Signed-off-by: Wei-Ting Yang <williamatcg@gmail.com>
This commit is contained in:
committed by
George Sapkin
parent
7986015662
commit
da5b99f7c7
Executable
+28
@@ -0,0 +1,28 @@
|
||||
#!/bin/sh
|
||||
|
||||
# shellcheck shell=busybox
|
||||
|
||||
case "$PKG_NAME" in
|
||||
tor|tor-basic)
|
||||
tor --version | grep -F "$PKG_VERSION"
|
||||
;;
|
||||
|
||||
tor-gencert)
|
||||
# Do not provide version information
|
||||
exit 0
|
||||
;;
|
||||
|
||||
tor-resolve)
|
||||
tor-resolve --version | grep -F "$PKG_VERSION"
|
||||
;;
|
||||
|
||||
tor-geoip)
|
||||
# Databases
|
||||
exit 0
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "Untested package: $PKG_NAME" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
Reference in New Issue
Block a user