mirror of
https://github.com/openwrt/packages.git
synced 2026-05-31 15:02:01 +08:00
da5b99f7c7
Add version check override script. Signed-off-by: Wei-Ting Yang <williamatcg@gmail.com>
29 lines
346 B
Bash
Executable File
29 lines
346 B
Bash
Executable File
#!/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
|