mirror of
https://github.com/openwrt/packages.git
synced 2026-10-12 23:16:56 +04:00
olsrd leaves through olsr_exit(), which ends the process with raise(SIGTERM) rather than returning from main, so the shell reports "Terminated" right after the version banner even for a plain `olsrd -v`. The pipeline status comes from grep, so the check itself is unaffected, but the line in the CI log looks like a failure to anyone reading it. Note it in the script so the next reader does not go hunting. Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com> Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
29 lines
561 B
Bash
29 lines
561 B
Bash
#!/bin/sh
|
|
|
|
# shellcheck shell=busybox
|
|
|
|
case "$PKG_NAME" in
|
|
olsrd)
|
|
# olsrd leaves through olsr_exit(), which ends the process with
|
|
# raise(SIGTERM) even for -v, so the shell reports "Terminated"
|
|
# after the banner. The pipeline status comes from grep, so the
|
|
# check is unaffected.
|
|
olsrd -v 2>&1 | grep -F "$PKG_VERSION"
|
|
;;
|
|
|
|
olsrd-mod-*)
|
|
# Plugins are libraries and do not provide version information
|
|
exit 0
|
|
;;
|
|
|
|
olsrd-utils)
|
|
# Shell scripts only, no version information provided
|
|
exit 0
|
|
;;
|
|
|
|
*)
|
|
echo "Untested package: $PKG_NAME" >&2
|
|
exit 1
|
|
;;
|
|
esac
|