mirror of
https://github.com/openwrt/packages.git
synced 2026-05-31 06:51:51 +08:00
97edc9f52d
Add version check override script. Signed-off-by: George Sapkin <george@sapk.in>
30 lines
361 B
Bash
Executable File
30 lines
361 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# shellckeck shell=busybox
|
|
|
|
case "$PKG_NAME" in
|
|
libunbound)
|
|
exit 0
|
|
;;
|
|
|
|
unbound-anchor|\
|
|
unbound-checkconf|\
|
|
unbound-control|\
|
|
unbound-host)
|
|
$PKG_NAME -h 2>&1 | grep -F "$PKG_VERSION"
|
|
;;
|
|
|
|
unbound-control-setup)
|
|
exit 0
|
|
;;
|
|
|
|
unbound-daemon)
|
|
unbound -V 2>&1 | grep -F "$PKG_VERSION"
|
|
;;
|
|
|
|
*)
|
|
echo "Untested package: $PKG_NAME" >&2
|
|
exit 1
|
|
;;
|
|
esac
|