mirror of
https://github.com/openwrt/packages.git
synced 2026-10-12 05:57:04 +04:00
Requires the libyang 5.x / libnetconf2 4.x / sysrepo 5.x stack the previous commits introduce, so DEPENDS moves back to +libyang and the legacy staging prefix override is dropped. Rewrite the three uci-defaults scripts against 2.8.x: modules now come from both netopeer2 and libnetconf2, sysrepoctl lost -a, and the keystore and netconf-server models changed. Add test.sh and a test-version.sh override for the version-flag-less cli. Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
19 lines
324 B
Bash
Executable File
19 lines
324 B
Bash
Executable File
#!/bin/sh
|
|
|
|
case "$1" in
|
|
netopeer2-server)
|
|
netopeer2-server -V | grep -F "$2"
|
|
;;
|
|
netopeer2-cli)
|
|
# Interactive shell, no -V flag; only presence can be checked.
|
|
[ -x /usr/bin/netopeer2-cli ] || {
|
|
echo "netopeer2-cli not found" >&2
|
|
exit 1
|
|
}
|
|
;;
|
|
*)
|
|
echo "Unsupported test target: $1" >&2
|
|
exit 1
|
|
;;
|
|
esac
|