mirror of
https://github.com/openwrt/packages.git
synced 2026-10-12 05:57:04 +04:00
OpenSSH reports "10.4p1" but PKG_VERSION is "10.4_p1", so the forced generic probe never matches and fails. Verify via ssh/sshd where the subpackage ships one and accept the subpackages that carry no version-reporting binary. Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
11 lines
355 B
Bash
Executable File
11 lines
355 B
Bash
Executable File
#!/bin/sh
|
|
# OpenSSH reports "10.4p1" but PKG_VERSION is "10.4_p1"; verify via ssh/sshd
|
|
# where present and accept subpackages that ship no version-reporting binary.
|
|
want="OpenSSH_$(echo "$2" | sed 's/_p/p/')"
|
|
for bin in /usr/libexec/ssh-openssh /usr/sbin/sshd; do
|
|
[ -x "$bin" ] || continue
|
|
"$bin" -V 2>&1 | grep -q "$want" && exit 0
|
|
exit 1
|
|
done
|
|
exit 0
|