Files
packages/net/tor/test-version.sh
Wei-Ting Yang da5b99f7c7 tor: add version check override
Add version check override script.

Signed-off-by: Wei-Ting Yang <williamatcg@gmail.com>
2026-05-25 08:02:47 +03:00

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