mirror of
https://github.com/openwrt/packages.git
synced 2026-10-13 01:27:31 +04:00
unbound: add version check override
Add version check override script.
Signed-off-by: George Sapkin <george@sapk.in>
(cherry picked from commit 97edc9f52d)
This commit is contained in:
1 parent
b9565e9b05
commit
ff75efd4c2
2 files changed
+29
-1
No files matched your search
Executable
+29
@@ -0,0 +1,29 @@
|
||||
#!/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
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
case "$1" in
|
||||
unbound-daemon)
|
||||
unbound -V 2>&1 | grep -F "$2"
|
||||
[ -f /etc/unbound/unbound.conf ] || { echo "FAIL: /etc/unbound/unbound.conf not installed"; exit 1; }
|
||||
;;
|
||||
|
||||
|
||||
Reference in new issue
Block a user